3v4l.org

run code in 300+ PHP versions simultaneously
<?php $locations = array ( 'address' => 'R. da Liberdade, 13 - Boqueirão, Santos - SP, 11025-030, Brasil', 'lat' => -23.9593778, 'lng' => -46.3213139, 'zoom' => 14, 'place_id' => 'ChIJcQuV-KYDzpQR9vS809TSj9I', 'street_number' => 13, 'street_name' => 'Rua da Liberdade', 'street_name_short' => 'R. da Liberdade', 'state' => 'São Paulo', 'state_short' => 'SP', 'post_code' => '11025-030', 'country' => 'Brasil', 'country_short' => 'BR', 'city' => 'Santos', 'neighborhood' => 'Boqueirão', ); $address = []; if (isset($locations['neighborhood'])) $address[] = $locations['neighborhood']; if (isset($locations['city'])) $address[] = $locations['city']; if (isset($locations['state'])) $address[] = $locations['state']; elseif (isset($locations['state_short'])) $address[] = $locations['state_short']; $address = implode(', ', $address); echo $address;

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.5.10.0130.00516.63
8.5.00.0130.00819.93
8.4.160.0120.01123.85
8.4.150.0080.00616.93
8.4.140.0130.00717.46
8.4.130.0140.00817.54
8.4.120.0080.00124.33
8.4.110.0090.00617.92
8.4.100.0130.00818.56
8.4.90.0110.00720.45
8.4.80.0110.00918.83
8.4.70.0140.00518.89
8.4.60.0140.00919.03
8.4.50.0090.00818.53
8.4.40.0060.01318.54
8.4.30.0160.00318.69
8.4.20.0140.00420.68
8.4.10.0080.00017.71
8.3.280.0020.00114.05
8.3.270.0130.00616.59
8.3.260.0110.00716.68
8.3.250.0130.00617.00
8.3.240.0120.00717.13
8.3.230.0120.00616.64
8.3.220.0050.00318.98
8.3.210.0100.01016.40
8.3.200.0050.00416.64
8.3.190.0040.00417.08
8.3.180.0110.00719.04
8.3.170.0030.01418.94
8.3.160.0110.00717.27
8.3.150.0080.00017.09
8.3.140.0040.01120.81
8.3.130.0000.00818.10
8.3.120.0090.00018.94
8.3.110.0090.00020.94
8.3.100.0060.00324.06
8.3.90.0120.00326.77
8.3.80.0080.00316.63
8.3.70.0110.00316.38
8.3.60.0130.00318.31
8.3.50.0090.01024.43
8.3.40.0170.00020.21
8.3.30.0120.00318.68
8.3.20.0080.00021.90
8.3.10.0050.00320.16
8.3.00.0050.00220.71
8.2.290.0130.00520.64
8.2.280.0120.00718.38
8.2.270.0060.01516.78
8.2.260.0100.00016.38
8.2.250.0070.00718.49
8.2.240.0060.00316.98
8.2.230.0100.00022.58
8.2.220.0000.01037.54
8.2.210.0070.01126.77
8.2.200.0060.00316.63
8.2.190.0100.01016.63
8.2.180.0160.00018.03
8.2.170.0120.00322.96
8.2.160.0060.00819.21
8.2.150.0050.00524.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0030.00626.16
8.2.110.0090.00021.03
8.2.100.0030.01017.66
8.2.90.0050.00317.88
8.2.80.0090.00018.86
8.2.70.0030.00617.50
8.2.60.0040.00417.63
8.2.50.0090.00017.55
8.2.40.0040.00421.07
8.2.30.0000.00718.09
8.2.20.0050.00318.18
8.2.10.0050.00319.22
8.2.00.0040.00419.34
8.1.330.0120.00721.82
8.1.320.0090.00816.24
8.1.310.0090.00616.69
8.1.300.0090.00618.16
8.1.290.0100.00018.88
8.1.280.0140.00025.92
8.1.270.0040.00422.10
8.1.260.0040.00426.35
8.1.250.0020.00528.09
8.1.240.0090.00023.92
8.1.230.0070.00419.00
8.1.220.0030.00617.88
8.1.210.0040.00418.77
8.1.200.0000.00817.10
8.1.190.0040.00417.11
8.1.180.0040.00418.10
8.1.170.0040.00417.62
8.1.160.0050.00218.74
8.1.150.0070.00018.82
8.1.140.0050.00218.84
8.1.130.0030.00720.08
8.1.120.0070.00017.36
8.1.110.0000.00817.27
8.1.100.0040.00417.35
8.1.90.0040.00417.29
8.1.80.0050.00317.46
8.1.70.0030.00317.35
8.1.60.0050.00317.48
8.1.50.0040.00417.33
8.1.40.0080.00017.45
8.1.30.0030.00617.48
8.1.20.0000.00817.58
8.1.10.0070.00017.50
8.1.00.0030.00517.39
8.0.300.0080.00018.77
8.0.290.0070.00016.75
8.0.280.0030.00318.44
8.0.270.0030.00417.93
8.0.260.0000.00820.06
8.0.250.0040.00416.98
8.0.240.0030.00316.84
8.0.230.0040.00316.78
8.0.220.0040.00416.82
8.0.210.0000.00716.74
8.0.200.0030.00516.81
8.0.190.0030.00316.89
8.0.180.0040.00416.81
8.0.170.0050.00316.82
8.0.160.0040.00416.84
8.0.150.0000.00816.77
8.0.140.0000.00716.79
8.0.130.0000.00613.18
8.0.120.0030.00416.68
8.0.110.0000.00716.77
8.0.100.0000.00716.84
8.0.90.0050.00316.89
8.0.80.0070.00816.81
8.0.70.0000.00716.71
8.0.60.0020.00516.85
8.0.50.0040.00416.69
8.0.30.0070.01017.22
8.0.20.0140.01017.18
8.0.10.0070.00016.83
8.0.00.0060.01216.53
7.4.330.0050.00015.55
7.4.320.0000.00616.53
7.4.300.0030.00316.38
7.4.290.0040.00416.43
7.4.280.0040.00416.53
7.4.270.0030.00316.43
7.4.260.0000.00613.20
7.4.250.0070.00016.52
7.4.240.0020.00516.47
7.4.230.0030.00316.36
7.4.220.0050.00216.53
7.4.210.0100.00616.58
7.4.200.0030.00316.52
7.4.130.0120.01016.55
7.4.120.0040.01216.43
7.4.110.0120.00616.56
7.4.100.0110.00816.35
7.4.90.0120.00916.36
7.4.80.0090.00619.39
7.4.70.0090.00616.48
7.4.60.0030.02016.30
7.4.50.0100.00316.29
7.4.40.0050.01016.12
7.4.30.0090.00616.26
7.4.20.0070.00716.39
7.4.10.0060.00916.06
7.4.00.0060.00916.54
7.3.330.0070.00016.33
7.3.320.0060.00013.07
7.3.310.0000.00716.50
7.3.300.0030.00316.32
7.3.290.0110.00716.25
7.3.260.0070.01116.65
7.3.240.0090.00816.53
7.3.230.0070.01016.45
7.3.210.0130.00316.58
7.3.200.0070.01016.25
7.3.190.0070.01016.41
7.3.180.0070.01316.54
7.3.170.0100.00716.42
7.3.160.0120.00616.24
7.3.150.0040.01216.20
7.3.140.0040.01016.37
7.3.130.0040.01116.27
7.3.120.0120.00316.23
7.3.110.0110.00616.24
7.3.100.0150.01516.42
7.3.90.0080.00816.24
7.3.80.0040.01116.18
7.3.70.0060.00916.43
7.3.60.0090.01216.38
7.3.50.0060.00916.17
7.3.40.0100.00616.11
7.3.30.0070.01416.38
7.3.20.0090.01116.34
7.3.10.0090.00916.13
7.3.00.0000.01516.27
7.2.330.0110.00716.48
7.2.320.0100.00716.75
7.2.310.0050.01416.77
7.2.300.0160.01016.57
7.2.290.0040.01116.59
7.2.280.0080.00816.43
7.2.270.0030.01316.62
7.2.260.0090.00616.41
7.2.250.0030.01416.63
7.2.240.0030.01416.59
7.2.230.0100.01416.39
7.2.220.0090.00616.76
7.2.210.0060.01016.45
7.2.200.0090.00616.25
7.2.190.0130.01016.46
7.2.180.0100.00716.32
7.2.170.0090.00616.47
7.2.160.0030.01916.46
7.2.150.0140.00416.51
7.2.140.0150.00616.70
7.2.130.0160.00016.50
7.2.120.0090.00616.47
7.2.110.0080.01116.51
7.2.100.0060.01016.50
7.2.90.0090.00616.30
7.2.80.0030.01316.63
7.2.70.0080.00816.38
7.2.60.0060.01016.58
7.2.50.0160.00316.58
7.2.40.0030.01516.57
7.2.30.0090.00916.70
7.2.20.0070.01016.53
7.2.10.0130.00316.71
7.2.00.0040.01416.54

preferences:
45.61 ms | 403 KiB | 5 Q