3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array( 'camelCase' => ' value and things', 'non_camel_case' => 'Other stuff', 'list' => array('a','b','c')); print_r($arr); $json = json_encode($arr); echo $json;

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.0040.01118.64
8.3.30.0110.00418.92
8.3.20.0050.00320.29
8.3.10.0040.00420.34
8.3.00.0040.00419.15
8.2.170.0100.00322.96
8.2.160.0070.00720.44
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0070.00026.16
8.2.120.0000.00822.20
8.2.110.0030.00619.31
8.2.100.0040.00717.66
8.2.90.0040.00419.05
8.2.80.0040.00417.97
8.2.70.0050.00317.63
8.2.60.0040.00417.93
8.2.50.0080.00318.07
8.2.40.0060.00318.16
8.2.30.0000.00719.43
8.2.20.0070.00017.55
8.2.10.0040.00417.99
8.2.00.0000.00717.73
8.1.270.0050.00322.02
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0060.00321.06
8.1.230.0030.00917.42
8.1.220.0000.00817.79
8.1.210.0040.00418.77
8.1.200.0060.00317.23
8.1.190.0000.00817.10
8.1.180.0050.00218.10
8.1.170.0040.00418.29
8.1.160.0040.00421.90
8.1.150.0030.00318.73
8.1.140.0000.00717.33
8.1.130.0040.00417.80
8.1.120.0000.00717.38
8.1.110.0040.00417.33
8.1.100.0000.00717.41
8.1.90.0050.00217.31
8.1.80.0000.00717.32
8.1.70.0070.00017.33
8.1.60.0000.00917.55
8.1.50.0080.00017.38
8.1.40.0040.00417.33
8.1.30.0030.00617.56
8.1.20.0050.00317.68
8.1.10.0040.00417.54
8.1.00.0070.00017.29
8.0.300.0050.00218.77
8.0.290.0070.00016.63
8.0.280.0000.00718.36
8.0.270.0000.00717.14
8.0.260.0030.00317.21
8.0.250.0000.00716.89
8.0.240.0030.00516.96
8.0.230.0000.00716.84
8.0.220.0030.00316.76
8.0.210.0070.00016.83
8.0.200.0040.00416.75
8.0.190.0030.00316.89
8.0.180.0000.00816.86
8.0.170.0000.00716.89
8.0.160.0030.00416.74
8.0.150.0000.00716.70
8.0.140.0060.00316.66
8.0.130.0060.00313.23
8.0.120.0040.00416.81
8.0.110.0030.00516.71
8.0.100.0030.00516.68
8.0.90.0000.00716.74
8.0.80.0090.00616.80
8.0.70.0000.00716.76
8.0.60.0040.00416.62
8.0.50.0040.00416.60
8.0.30.0110.01117.02
8.0.20.0100.01717.40
8.0.10.0040.00416.81
8.0.00.0110.00916.64
7.4.330.0000.00515.09
7.4.320.0000.00716.52
7.4.300.0000.00616.46
7.4.290.0030.00316.43
7.4.280.0000.00716.47
7.4.270.0030.00316.30
7.4.260.0000.00716.34
7.4.250.0040.00416.50
7.4.240.0020.00516.40
7.4.230.0040.00416.52
7.4.220.0100.00716.40
7.4.210.0110.00416.38
7.4.200.0030.00316.43
7.4.160.0200.00416.25
7.4.150.0120.00617.40
7.4.140.0070.01317.86
7.4.130.0110.01116.38
7.4.120.0030.01416.51
7.4.110.0130.00416.24
7.4.100.0060.01016.32
7.4.90.0030.01316.50
7.4.80.0140.00719.39
7.4.70.0150.00316.59
7.4.60.0100.00716.39
7.4.50.0040.00416.28
7.4.40.0130.00316.48
7.4.30.0100.01016.17
7.4.00.0050.01114.86
7.3.330.0000.00513.11
7.3.320.0050.00013.04
7.3.310.0040.00416.07
7.3.300.0030.00316.04
7.3.290.0030.01316.15
7.3.280.0090.00816.27
7.3.270.0100.00817.40
7.3.260.0090.00916.33
7.3.250.0120.00616.33
7.3.240.0040.01216.19
7.3.230.0090.00916.39
7.3.210.0140.00616.51
7.3.200.0070.01019.39
7.3.190.0070.01116.21
7.3.180.0080.00816.50
7.3.170.0120.00416.33
7.3.160.0070.01016.36
7.3.120.0090.00814.60
7.3.110.0080.00514.64
7.3.100.0070.00914.63
7.3.90.0080.00814.82
7.3.80.0060.00614.71
7.3.70.0040.00714.54
7.3.60.0080.00614.79
7.3.50.0090.00314.56
7.3.40.0060.00614.63
7.3.30.0120.00314.58
7.3.20.0070.01016.57
7.3.10.0090.00716.53
7.3.00.0060.00716.42
7.2.330.0190.00316.76
7.2.320.0140.00316.47
7.2.310.0160.00316.68
7.2.300.0100.00716.44
7.2.290.0000.01616.45
7.2.250.0060.00914.91
7.2.240.0060.01114.91
7.2.230.0050.00814.88
7.2.220.0030.01015.10
7.2.210.0020.01214.94
7.2.200.0080.00414.94
7.2.190.0080.00814.98
7.2.180.0070.00514.96
7.2.170.0060.00514.84
7.2.160.0070.01115.04
7.2.150.0060.00916.93
7.2.140.0070.01116.59
7.2.130.0030.01217.02
7.2.120.0060.01216.63
7.2.110.0040.01216.65
7.2.100.0080.00316.97
7.2.90.0030.01316.90
7.2.80.0090.00617.00
7.2.70.0030.01317.02
7.2.60.0050.01016.75
7.2.50.0030.01416.98
7.2.40.0060.00616.86
7.2.30.0060.00916.86
7.2.20.0030.00916.77
7.2.10.0030.01216.79
7.2.00.0030.01318.17
7.1.330.0080.00615.82
7.1.320.0060.00415.81
7.1.310.0070.00715.73
7.1.300.0070.00515.84
7.1.290.0040.01115.65
7.1.280.0090.00515.70
7.1.270.0040.01215.51
7.1.260.0030.01015.52
7.1.250.0000.01015.46
7.1.200.0040.01115.92
7.1.100.0040.00718.06
7.1.70.0020.00517.29
7.1.60.0070.01619.12
7.1.50.0070.01816.57
7.1.00.0130.06722.35
7.0.200.0070.00316.89
7.0.140.0030.06722.05
7.0.90.0200.07019.96
7.0.80.0070.04319.95
7.0.70.0070.04719.89
7.0.60.0230.04720.05
7.0.50.0300.04320.35
7.0.40.0000.08719.94
7.0.30.0030.05020.09
7.0.20.0100.07720.04
7.0.10.0070.08020.10
7.0.00.0030.06020.16
5.6.280.0000.07321.11
5.6.240.0030.03720.59
5.6.230.0030.04720.65
5.6.220.0000.04320.66
5.6.210.0070.03320.55
5.6.200.0070.05021.08
5.6.190.0070.05321.02
5.6.180.0100.07721.13
5.6.170.0070.08020.95
5.6.160.0170.07020.93
5.6.150.0030.06021.13
5.6.140.0100.07720.91
5.6.130.0000.06721.00
5.6.120.0070.06021.03
5.6.110.0130.03721.09
5.6.100.0130.06721.00
5.6.90.0070.06020.99
5.6.80.0070.08320.46
5.6.70.0000.05320.46
5.6.60.0100.07320.46
5.6.50.0070.06320.31
5.6.40.0170.07020.38
5.6.30.0130.07320.30
5.6.20.0030.06320.44
5.6.10.0030.08320.52
5.6.00.0070.06320.41
5.5.380.0100.03320.58
5.5.370.0030.04020.57
5.5.360.0030.04320.38
5.5.350.0030.04720.46
5.5.340.0070.05720.89
5.5.330.0070.06020.89
5.5.320.0100.07720.83
5.5.310.0070.08720.81
5.5.300.0030.05020.63
5.5.290.0100.04020.88
5.5.280.0070.05320.91
5.5.270.0170.07320.87
5.5.260.0130.07720.89
5.5.250.0100.05020.63
5.5.240.0100.05020.28
5.5.230.0370.05720.01
5.5.220.0170.07320.22
5.5.210.0030.08320.13
5.5.200.0130.04020.14
5.5.190.0170.07020.23
5.5.180.0130.07720.14
5.5.160.0070.06320.29
5.5.150.0100.07320.22
5.5.140.0100.07720.11
5.5.130.0030.06020.16
5.5.120.0100.07020.26
5.5.110.0030.07020.26
5.5.100.0070.05720.07
5.5.90.0130.07020.12
5.5.80.0070.08019.96
5.5.70.0130.07320.05
5.5.60.0130.06720.05
5.5.50.0030.04020.13
5.5.40.0100.07019.99
5.5.30.0030.04720.11
5.5.20.0100.07320.14
5.5.10.0070.08020.10
5.5.00.0070.05320.12
5.4.450.0000.07019.20
5.4.440.0100.07319.53
5.4.430.0170.06719.55
5.4.420.0100.07319.57
5.4.410.0130.07019.38
5.4.400.0030.07018.95
5.4.390.0100.07319.17
5.4.380.0200.05019.02
5.4.370.0130.07319.21
5.4.360.0030.07718.90
5.4.350.0070.07319.16
5.4.340.0030.08019.23
5.4.320.0030.06318.95
5.4.310.0070.05719.12
5.4.300.0070.08018.86
5.4.290.0030.07019.09
5.4.280.0130.06718.84
5.4.270.0130.04019.12
5.4.260.0170.06719.12
5.4.250.0130.07019.17
5.4.240.0130.06319.22
5.4.230.0070.07019.15
5.4.220.0070.06719.17
5.4.210.0000.05319.02
5.4.200.0170.06319.00
5.4.190.0070.06319.20
5.4.180.0100.05018.86
5.4.170.0130.07318.86
5.4.160.0070.06718.88
5.4.150.0000.08319.09
5.4.140.0170.06016.37
5.4.130.0100.04316.19
5.4.120.0030.06316.40
5.4.110.0000.07016.34
5.4.100.0100.07016.28
5.4.90.0030.07316.50
5.4.80.0030.08016.48
5.4.70.0100.05316.34
5.4.60.0030.07716.38
5.4.50.0230.03316.29
5.4.40.0000.07716.46
5.4.30.0100.07316.45
5.4.20.0030.07316.40
5.4.10.0030.06716.24
5.4.00.0200.06715.89
5.3.290.0070.06714.71
5.3.280.0030.05014.57
5.3.270.0130.05314.55
5.3.260.0000.06714.53
5.3.250.0130.06714.58
5.3.240.0100.07014.53
5.3.230.0130.07014.68
5.3.220.0070.04314.55
5.3.210.0100.05314.68
5.3.200.0170.04314.57
5.3.190.0030.07714.65
5.3.180.0100.07714.48
5.3.170.0100.07714.48
5.3.160.0070.07014.56
5.3.150.0070.07014.54
5.3.140.0030.07714.65
5.3.130.0070.06314.60
5.3.120.0030.07014.49
5.3.110.0070.04714.46
5.3.100.0070.04014.15
5.3.90.0100.07314.12
5.3.80.0100.07313.93
5.3.70.0100.07014.10
5.3.60.0070.06014.07
5.3.50.0130.06013.91
5.3.40.0200.04313.91
5.3.30.0100.06013.89
5.3.20.0030.06713.81
5.3.10.0070.07313.68
5.3.00.0130.08013.62
5.2.170.0030.06311.05
5.2.160.0100.05311.20
5.2.150.0070.06311.00
5.2.140.0000.05011.14
5.2.130.0170.04711.01
5.2.120.0030.06311.12
5.2.110.0030.06310.98
5.2.100.0070.05711.01
5.2.90.0000.05711.16
5.2.80.0030.06710.95
5.2.70.0130.05310.95
5.2.60.0130.03711.18
5.2.50.0130.05311.01
5.2.40.0070.05711.08
5.2.30.0070.06310.89
5.2.20.0070.04010.98
5.2.10.0000.06010.79
5.2.00.0100.05010.76
5.1.60.0100.0509.82
5.1.50.0100.04710.07
5.1.40.0070.04710.02
5.1.30.0030.05010.40
5.1.20.0070.05710.38
5.1.10.0200.0339.90
5.1.00.0100.03710.09
5.0.50.0100.0378.37
5.0.40.0000.0408.28
5.0.30.0000.0508.22
5.0.20.0000.0438.18
5.0.10.0070.0238.00
5.0.00.0000.0338.26
4.4.90.0030.0337.44
4.4.80.0070.0377.44
4.4.70.0000.0407.44
4.4.60.0000.0207.44
4.4.50.0070.0107.44
4.4.40.0000.0437.44
4.4.30.0070.0377.44
4.4.20.0000.0377.44
4.4.10.0070.0237.44
4.4.00.0100.0477.44
4.3.110.0030.0307.44
4.3.100.0030.0377.44
4.3.90.0030.0237.44
4.3.80.0000.0437.44
4.3.70.0000.0377.44
4.3.60.0000.0277.44
4.3.50.0070.0277.44
4.3.40.0030.0507.44
4.3.30.0030.0307.44
4.3.20.0030.0337.44
4.3.10.0000.0307.44
4.3.00.0000.0307.44

preferences:
45.71 ms | 400 KiB | 5 Q