```ruby
default[:php][:version] = "7.2"
```

Use PHP 7.4 on Ubuntu 20.04
user
```ruby
default[:php][:version] = if node[:lsb][:release].to_f < 20.04
                            "7.2"
                          else
                            "7.4"
                          end
```
assistant