3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '{"products":[{"product_id":"057-10-1351","desired_quantity":1}],"nearby":"32765","radius":100,"multichannel_options":[{"multichannel_option":"none"}]}'; $id = 1; $zip = 2; $prox = 3; $x = [ "products": [ "product_id" => $1 , "desired_quantity" => 1 ] , "nearby" => $2 , "radius" => $3 ]; var_dump $x;

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)
5.4.320.3600.03019.25
5.4.310.3830.04019.20
5.4.300.4100.04718.98
5.4.290.3770.03719.21
5.4.280.3570.03718.94
5.4.270.3600.04019.13
5.4.260.3630.03719.15
5.4.250.3830.04019.30
5.4.240.3870.03319.21
5.4.230.3670.03719.21
5.4.220.4170.03718.94
5.4.210.3730.04319.21
5.4.200.3970.03018.85
5.4.190.3900.04019.21
5.4.180.4070.03719.07
5.4.170.3830.03019.07
5.4.160.4130.04319.08
5.4.150.4100.05319.04
5.4.140.3400.04316.31
5.4.130.3800.04016.34
5.4.120.3500.03716.33
5.4.110.3770.02716.16
5.4.100.3530.03316.37
5.4.90.3530.03716.45
5.4.80.2870.03716.52
5.4.70.2600.03716.43
5.4.60.3030.03716.30
5.4.50.3500.03016.25
5.4.40.3570.02716.45
5.4.30.3530.03316.48
5.4.20.3330.03316.52
5.4.10.3430.04016.37
5.4.00.3400.04015.82
5.3.290.3670.03314.75
5.3.280.3530.04014.46
5.3.270.3870.04014.64
5.3.260.3900.03714.59
5.3.250.3900.04014.59
5.3.240.4000.04314.63
5.3.230.3600.03314.44
5.3.220.3670.03014.60
5.3.210.3630.04314.59
5.3.200.3600.03014.52
5.3.190.3670.03714.66
5.3.180.2770.04314.65
5.3.170.3330.03714.51
5.3.160.3670.03714.47
5.3.150.3530.03314.42
5.3.140.3470.02714.65
5.3.130.3300.04014.59
5.3.120.3530.04014.50
5.3.110.3100.03314.48
5.3.100.3800.02713.93
5.3.90.3630.03714.00
5.3.80.3830.04013.89
5.3.70.3630.03313.92
5.3.60.3700.03013.96
5.3.50.3430.03713.75
5.3.40.3630.03313.99
5.3.30.3600.03313.74
5.3.20.3570.03313.64
5.3.10.3900.04013.51
5.3.00.4100.04313.72
5.2.170.3030.02010.98
5.2.160.3430.03311.20
5.2.150.3200.03711.29
5.2.140.3270.03011.03
5.2.130.2970.02711.15
5.2.120.2730.02710.94
5.2.110.3000.02711.25
5.2.100.3270.02710.94
5.2.90.3230.03311.01
5.2.80.3230.02711.02
5.2.70.3200.03011.11
5.2.60.3170.02711.11
5.2.50.3100.03010.84
5.2.40.2800.02310.83
5.2.30.2370.03310.98
5.2.20.2530.02710.86
5.2.10.2670.03010.93
5.2.00.2770.03010.71
5.1.60.2030.02710.11
5.1.50.2400.02010.11
5.1.40.2630.02710.11
5.1.30.2370.03010.29
5.1.20.2500.02710.32
5.1.10.2530.02710.19
5.1.00.2670.02310.12
5.0.50.1370.02710.11
5.0.40.1330.01710.11
5.0.30.1470.02310.11
5.0.20.1230.02010.11
5.0.10.1530.01310.11
5.0.00.1400.03310.11
4.4.90.1500.01710.11
4.4.80.1230.01310.11
4.4.70.1200.01710.11
4.4.60.1470.01310.11
4.4.50.1200.01310.11
4.4.40.1500.02710.11
4.4.30.1430.01310.11
4.4.20.1170.01710.11
4.4.10.1230.01310.11
4.4.00.1500.02710.11
4.3.110.1270.01710.11
4.3.100.1170.01710.11
4.3.90.1500.01710.11
4.3.80.1330.02710.11
4.3.70.1730.01710.11
4.3.60.1670.01710.11
4.3.50.1730.01310.11
4.3.40.1630.02710.11
4.3.30.0900.02310.11
4.3.20.0770.01710.11
4.3.10.0870.02710.11
4.3.00.0970.02010.11

preferences:
142.15 ms | 1394 KiB | 7 Q