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 = array( "products" => array(array( "product_id" => $id , "desired_quantity" => 1 )) , "nearby" => $zip , "radius" => $prox ); print $str.PHP_EOL; print json_encode($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)
8.3.40.0110.00718.59
8.3.30.0070.00719.02
8.3.20.0080.00020.14
8.3.10.0060.00318.75
8.3.00.0080.00019.25
8.2.170.0030.01022.96
8.2.160.0070.00720.33
8.2.150.0050.00224.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0060.00321.09
8.2.110.0030.00620.37
8.2.100.0060.00618.09
8.2.90.0080.00418.97
8.2.80.0030.00517.97
8.2.70.0070.00317.75
8.2.60.0040.00418.05
8.2.50.0030.00518.07
8.2.40.0040.00418.21
8.2.30.0040.00419.31
8.2.20.0030.00617.81
8.2.10.0000.00718.00
8.2.00.0040.00417.80
8.1.270.0060.00323.91
8.1.260.0050.00226.35
8.1.250.0080.00028.09
8.1.240.0000.00923.83
8.1.230.0110.00019.08
8.1.220.0090.00017.74
8.1.210.0040.00418.77
8.1.200.0000.00917.13
8.1.190.0040.00417.10
8.1.180.0000.00818.10
8.1.170.0040.00418.72
8.1.160.0040.00422.00
8.1.150.0060.00318.88
8.1.140.0040.00417.36
8.1.130.0070.00017.93
8.1.120.0040.00417.33
8.1.110.0080.00017.52
8.1.100.0070.00017.49
8.1.90.0070.00017.41
8.1.80.0050.00217.34
8.1.70.0000.00717.41
8.1.60.0030.00617.55
8.1.50.0080.00017.41
8.1.40.0040.00417.43
8.1.30.0030.00517.55
8.1.20.0030.00617.62
8.1.10.0000.00717.60
8.1.00.0000.00817.53
8.0.300.0000.00818.77
8.0.290.0040.00416.63
8.0.280.0000.00718.32
8.0.270.0000.00717.25
8.0.260.0000.00817.25
8.0.250.0000.00717.04
8.0.240.0000.00617.01
8.0.230.0040.00316.82
8.0.220.0070.00016.90
8.0.210.0000.00716.89
8.0.200.0030.00316.86
8.0.190.0030.00516.84
8.0.180.0030.00316.91
8.0.170.0030.00516.95
8.0.160.0030.00316.91
8.0.150.0050.00216.89
8.0.140.0030.00316.74
8.0.130.0030.00313.30
8.0.120.0080.00016.84
8.0.110.0060.00316.82
8.0.100.0070.00016.87
8.0.90.0040.00416.69
8.0.80.0030.01216.91
8.0.70.0030.00516.83
8.0.60.0000.00816.84
8.0.50.0000.00716.84
8.0.30.0140.00517.11
8.0.20.0150.00617.40
8.0.10.0070.00016.79
8.0.00.0110.00716.84
7.4.330.0020.00215.01
7.4.320.0040.00416.59
7.4.300.0030.00316.50
7.4.290.0020.00516.40
7.4.280.0060.00316.46
7.4.270.0040.00416.53
7.4.260.0000.00716.50
7.4.250.0070.00016.48
7.4.240.0020.00516.57
7.4.230.0060.00316.60
7.4.220.0000.02216.53
7.4.210.0090.00616.46
7.4.200.0070.00016.66
7.4.160.0080.00816.47
7.4.150.0110.01417.40
7.4.140.0140.00717.86
7.4.130.0130.00316.55
7.4.120.0060.01016.44
7.4.110.0040.01416.36
7.4.100.0050.01616.66
7.4.90.0130.00716.53
7.4.80.0130.01219.39
7.4.70.0120.00316.50
7.4.60.0030.01416.52
7.4.50.0080.00016.16
7.4.40.0080.00816.59
7.4.30.0030.01416.64
7.4.00.0100.00715.08
7.3.330.0050.00013.26
7.3.320.0020.00313.16
7.3.310.0070.00016.28
7.3.300.0030.00316.36
7.3.290.0110.00416.29
7.3.280.0070.01216.31
7.3.270.0070.01117.40
7.3.260.0000.01716.64
7.3.250.0070.01016.52
7.3.240.0030.01316.39
7.3.230.0070.01316.39
7.3.210.0060.01216.39
7.3.200.0140.00919.39
7.3.190.0100.00716.54
7.3.180.0150.00316.30
7.3.170.0120.00416.33
7.3.160.0100.00616.46
7.2.330.0180.00016.36
7.2.320.0060.01216.71
7.2.310.0060.01616.71
7.2.300.0030.01416.47
7.2.290.0170.00316.57
7.2.00.0000.01319.48
7.1.100.0050.00518.09
7.1.70.0060.00616.89
7.1.60.0100.01419.61
7.1.50.0100.01617.02
7.1.00.0030.09722.53
7.0.200.0040.00416.47
7.0.140.0030.07022.12
7.0.110.0070.08719.97
7.0.100.0130.08019.99
7.0.90.0100.08019.93
7.0.80.0130.06720.01
7.0.70.0130.07019.92
7.0.60.0070.08019.98
7.0.50.0200.06319.85
7.0.40.0130.07019.87
7.0.30.0100.04719.79
7.0.20.0100.08019.73
7.0.10.0030.06719.81
7.0.00.0130.07719.66
5.6.280.0030.07021.12
5.6.260.0030.08720.71
5.6.250.0130.07320.69
5.6.240.0030.08320.71
5.6.230.0130.07720.63
5.6.220.0130.07720.61
5.6.210.0070.05020.61
5.6.200.0030.07720.55
5.6.190.0070.08320.70
5.6.180.0130.07720.58
5.6.170.0070.07720.70
5.6.160.0100.07720.64
5.6.150.0200.07320.70
5.6.140.0130.06720.64
5.6.130.0100.08320.69
5.6.120.0030.09320.64
5.6.110.0000.09020.53
5.6.100.0000.08720.78
5.6.90.0100.05020.67
5.6.80.0000.07320.02
5.6.70.0100.07320.06
5.6.60.0130.07020.00
5.6.50.0100.07319.93
5.6.40.0130.06720.04
5.6.30.0070.08019.94
5.6.20.0130.04319.91
5.6.10.0000.07720.04
5.6.00.0070.07719.98
5.5.380.0170.07020.57
5.5.370.0130.07720.50
5.5.360.0000.08720.22
5.5.350.0070.07320.48
5.5.340.0130.08020.82
5.5.330.0030.07020.86
5.5.320.0030.08321.03
5.5.310.0070.05020.84
5.5.300.0130.07020.89
5.5.290.0230.07020.89
5.5.280.0100.07720.89
5.5.270.0130.07020.87
5.5.260.0100.08720.93
5.5.250.0100.08320.50
5.5.240.0130.07720.32
5.5.230.0030.08320.11
5.5.220.0100.07020.40
5.5.210.0030.08020.07
5.5.200.0030.05020.09
5.5.190.0100.08020.33
5.5.180.0070.07720.09
5.5.160.0030.07320.29
5.5.150.0170.06720.36
5.5.140.0130.07320.22
5.5.130.0030.07320.15
5.5.120.0030.07020.22
5.5.110.0070.08020.08
5.5.100.0100.08020.14
5.5.90.0130.07720.01
5.5.80.0070.04720.18
5.5.70.0000.08320.09
5.5.60.0130.06720.17
5.5.50.0070.08320.11
5.5.40.0170.06320.17
5.5.30.0030.08320.23
5.5.20.0070.04720.19
5.5.10.0130.07020.02
5.5.00.0100.08019.94
5.4.450.0030.07719.44
5.4.440.0000.05319.33
5.4.430.0100.04719.57
5.4.420.0070.07719.35
5.4.410.0100.07319.22
5.4.400.0130.05318.98
5.4.390.0030.07719.08
5.4.380.0030.08019.07
5.4.370.0070.04318.94
5.4.360.0100.07019.13
5.4.350.0100.07018.93
5.4.340.0170.06718.98
5.4.320.0030.08019.07
5.4.310.0100.07719.18
5.4.300.0100.07318.95
5.4.290.0100.07719.02
5.4.280.0000.07318.95
5.4.270.0200.06319.12
5.4.260.0070.07719.00
5.4.250.0100.07319.09
5.4.240.0070.07719.00
5.4.230.0030.05318.99
5.4.220.0030.08018.94
5.4.210.0100.07719.00
5.4.200.0030.08018.94
5.4.190.0130.06719.06
5.4.180.0100.07718.94
5.4.170.0030.07719.00
5.4.160.0030.06019.16
5.4.150.0030.08018.96
5.4.140.0000.08016.43
5.4.130.0130.07016.43
5.4.120.0000.07716.52
5.4.110.0070.07716.37
5.4.100.0130.06716.50
5.4.90.0000.04316.50
5.4.80.0000.04016.36
5.4.70.0100.04016.49
5.4.60.0030.08016.17
5.4.50.0100.06716.46
5.4.40.0100.06716.40
5.4.30.0030.06016.38
5.4.20.0070.06316.20
5.4.10.0130.04316.20
5.4.00.0070.07715.56
5.3.290.0030.08314.57
5.3.280.0100.07314.39
5.3.270.0130.06314.66
5.3.260.0070.06714.70
5.3.250.0070.04014.53
5.3.240.0100.07014.68
5.3.230.0100.07014.53
5.3.220.0070.06714.64
5.3.210.0170.06714.64
5.3.200.0030.07714.63
5.3.190.0000.04314.36
5.3.180.0130.06314.45
5.3.170.0100.07714.63
5.3.160.0130.06714.64
5.3.150.0070.07714.63
5.3.140.0100.07014.40
5.3.130.0030.04014.47
5.3.120.0100.07014.34
5.3.110.0100.07014.42
5.3.100.0030.06014.28
5.3.90.0070.07014.28
5.3.80.0000.04014.28
5.3.70.0070.07714.28
5.3.60.0100.07714.28
5.3.50.0100.07014.28
5.3.40.0170.06714.28
5.3.30.0170.06314.28
5.3.20.0070.07014.28
5.3.10.0030.07014.28
5.3.00.0030.07014.28
5.2.170.0070.03714.28
5.2.160.0100.05314.28
5.2.150.0030.03714.28
5.2.140.0100.06014.28
5.2.130.0030.06014.28
5.2.120.0000.06714.28
5.2.110.0070.05014.28
5.2.100.0070.03314.28
5.2.90.0000.06314.28
5.2.80.0070.05714.28
5.2.70.0000.06314.28
5.2.60.0070.06714.28
5.2.50.0030.04714.28
5.2.40.0070.06314.28
5.2.30.0000.05714.28
5.2.20.0030.04714.28
5.2.10.0130.05314.28
5.2.00.0000.06014.28
5.1.60.0070.04314.28
5.1.50.0030.03714.28
5.1.40.0100.04314.28
5.1.30.0030.05714.28
5.1.20.0100.05314.28
5.1.10.0070.05014.28
5.1.00.0070.04014.28
5.0.50.0070.04314.28
5.0.40.0030.04014.28
5.0.30.0070.05014.28
5.0.20.0070.03014.28
5.0.10.0030.04314.28
5.0.00.0000.03714.28
4.4.90.0030.03314.28
4.4.80.0000.03714.28
4.4.70.0000.03714.28
4.4.60.0000.02714.28
4.4.50.0070.03014.28
4.4.40.0030.05314.28
4.4.30.0000.03014.28
4.4.20.0070.03314.28
4.4.10.0030.02314.28
4.4.00.0030.05714.28
4.3.110.0000.03714.28
4.3.100.0030.03014.28
4.3.90.0070.02714.28
4.3.80.0000.05314.28
4.3.70.0000.02714.28
4.3.60.0000.03714.28
4.3.50.0000.03714.28
4.3.40.0000.05014.28
4.3.30.0000.03714.28
4.3.20.0030.02314.28
4.3.10.0000.03714.28
4.3.00.0000.03014.28

preferences:
40.03 ms | 400 KiB | 5 Q