3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array('recursive'); $arr[] = & $arr; var_dump(json_encode($arr)); var_dump(json_last_error()); var_dump(PHP_VERSION_ID >= 50500 ? json_last_error_msg() : NULL);

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.60.0000.01918.43
8.3.50.0080.00821.93
8.3.40.0070.00718.76
8.3.30.0070.01119.01
8.3.20.0030.00320.29
8.3.10.0050.00322.15
8.3.00.0080.00022.51
8.2.180.0130.00716.63
8.2.170.0090.00622.96
8.2.160.0030.01020.27
8.2.150.0000.00724.18
8.2.140.0080.00024.66
8.2.130.0070.00726.16
8.2.120.0040.00417.63
8.2.110.0040.00422.04
8.2.100.0070.00417.78
8.2.90.0030.00519.27
8.2.80.0000.00818.04
8.2.70.0070.00417.50
8.2.60.0040.00417.80
8.2.50.0080.00018.07
8.2.40.0050.00218.28
8.2.30.0000.00818.04
8.2.20.0040.00417.62
8.2.10.0000.00919.58
8.2.00.0060.00317.68
8.1.280.0100.00325.92
8.1.270.0040.00423.99
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0000.00823.88
8.1.230.0030.00719.15
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00617.23
8.1.190.0050.00317.55
8.1.180.0000.00918.10
8.1.170.0080.00018.64
8.1.160.0000.00722.02
8.1.150.0000.00718.48
8.1.140.0080.00017.29
8.1.130.0070.00017.82
8.1.120.0040.00417.46
8.1.110.0040.00417.38
8.1.100.0050.00217.39
8.1.90.0050.00217.36
8.1.80.0000.00717.27
8.1.70.0030.00317.34
8.1.60.0040.00417.51
8.1.50.0020.00517.42
8.1.40.0090.00017.34
8.1.30.0020.00517.52
8.1.20.0080.00017.64
8.1.10.0080.00017.34
8.1.00.0030.00417.43
8.0.300.0050.00218.77
8.0.290.0070.00017.05
8.0.280.0070.00018.36
8.0.270.0040.00417.09
8.0.260.0000.00616.81
8.0.250.0070.00016.84
8.0.240.0030.00316.83
8.0.230.0030.00316.93
8.0.220.0000.00716.89
8.0.210.0030.00316.90
8.0.200.0030.00316.83
8.0.190.0070.00016.91
8.0.180.0070.00016.79
8.0.170.0040.00416.82
8.0.160.0050.00316.76
8.0.150.0050.00216.84
8.0.140.0040.00416.78
8.0.130.0000.00513.30
8.0.120.0030.00616.75
8.0.110.0040.00416.89
8.0.100.0040.00416.71
8.0.90.0000.00716.72
8.0.80.0040.01116.94
8.0.70.0040.00416.98
8.0.60.0000.00716.83
8.0.50.0020.00516.78
8.0.30.0090.00917.03
8.0.20.0070.01117.40
8.0.10.0030.00516.89
8.0.00.0060.01416.55
7.4.330.0020.00215.00
7.4.320.0000.00616.41
7.4.300.0040.00416.54
7.4.290.0000.00816.49
7.4.280.0030.00316.54
7.4.270.0050.00316.58
7.4.260.0060.00516.45
7.4.250.0000.00716.39
7.4.240.0030.00516.49
7.4.230.0070.00016.55
7.4.220.0100.00716.34
7.4.210.0020.01216.43
7.4.200.0060.00016.52
7.4.190.0030.00316.53
7.4.160.0080.00816.36
7.4.150.0120.01217.40
7.4.140.0060.01117.86
7.4.130.0080.01116.43
7.4.120.0080.01116.46
7.4.110.0030.01316.51
7.4.100.0120.00616.44
7.4.90.0070.01116.39
7.4.80.0100.01019.39
7.4.70.0110.00716.34
7.4.60.0040.01216.52
7.4.50.0060.00316.34
7.4.40.0070.00722.77
7.4.30.0100.01016.64
7.4.00.0080.00915.02
7.3.330.0070.00013.15
7.3.320.0000.00713.18
7.3.310.0000.00616.27
7.3.300.0030.00316.10
7.3.290.0110.00316.26
7.3.280.0080.00816.31
7.3.270.0110.00617.40
7.3.260.0000.01716.43
7.3.250.0090.01016.24
7.3.240.0100.00616.57
7.3.230.0140.00616.39
7.3.210.0170.00316.53
7.3.200.0100.00619.39
7.3.190.0100.01016.18
7.3.180.0090.00616.18
7.3.170.0060.00916.40
7.3.160.0070.01016.51
7.3.120.0060.00814.60
7.3.110.0120.00614.98
7.3.100.0100.00314.44
7.3.90.0040.00714.51
7.3.80.0060.00614.38
7.3.70.0090.00614.39
7.3.60.0100.00714.80
7.3.50.0130.00314.70
7.3.40.0060.00614.71
7.3.30.0070.00714.56
7.3.20.0000.01616.59
7.3.10.0030.00816.28
7.3.00.0030.00616.46
7.2.330.0130.00316.58
7.2.320.0030.01616.22
7.2.310.0120.00616.60
7.2.300.0030.01416.26
7.2.290.0030.01216.56
7.2.250.0090.00314.82
7.2.240.0070.01114.78
7.2.230.0090.00615.11
7.2.220.0110.00414.70
7.2.210.0060.00615.10
7.2.200.0030.01514.72
7.2.190.0060.00814.91
7.2.180.0070.00715.02
7.2.170.0000.01014.89
7.2.60.0140.00016.64
7.2.00.0000.01019.33
7.1.330.0080.00815.68
7.1.320.0040.01115.88
7.1.310.0000.01016.02
7.1.300.0070.00315.91
7.1.290.0030.00915.71
7.1.280.0080.00415.73
7.1.270.0090.00615.46
7.1.260.0030.00815.92
7.1.200.0000.01115.84
7.1.100.0030.00618.09
7.1.70.0040.00716.84
7.1.60.0090.00619.82
7.1.50.0000.02116.97
7.1.00.0130.06722.36
7.0.200.0050.00316.71
7.0.140.0030.07322.08
7.0.90.0100.04019.96
7.0.80.0230.07719.90
7.0.70.0400.06019.98
7.0.60.0530.05019.79
7.0.50.0600.04320.16
7.0.40.0100.07019.95
7.0.30.0100.07320.14
7.0.20.0070.08320.03
7.0.10.0130.06720.08
7.0.00.0070.04719.93
5.6.280.0000.07720.92
5.6.240.0100.07720.59
5.6.230.0100.08320.68
5.6.220.0130.07720.61
5.6.210.0030.09020.45
5.6.200.0070.04321.03
5.6.190.0100.05320.93
5.6.180.0100.07021.03
5.6.170.0100.07321.02
5.6.160.0000.04720.95
5.6.150.0030.07020.93
5.6.140.0070.08020.95
5.6.130.0070.05021.01
5.6.120.0030.08020.94
5.6.110.0070.07321.09
5.6.100.0200.07021.09
5.6.90.0100.06720.91
5.6.80.0130.04320.33
5.6.70.0030.04020.54
5.6.60.0030.08020.37
5.6.50.0070.05020.44
5.6.40.0070.06320.37
5.6.30.0070.06020.40
5.6.20.0130.03020.35
5.6.10.0000.04320.35
5.6.00.0100.03320.27
5.5.380.0070.04720.36
5.5.370.0230.06020.39
5.5.360.0130.07720.41
5.5.350.0100.07020.40
5.5.340.0130.05320.83
5.5.330.0070.06720.75
5.5.320.0130.07320.86
5.5.310.0100.07020.85
5.5.300.0030.04720.72
5.5.290.0030.05720.74
5.5.280.0030.08320.88
5.5.270.0030.08320.81
5.5.260.0100.08320.91
5.5.250.0100.05020.63
5.5.240.0030.04320.25
5.5.230.0130.06320.26
5.5.220.0070.08320.14
5.5.210.0030.07020.30
5.5.200.0170.06720.08
5.5.190.0130.03720.21
5.5.180.0030.04020.07
5.5.160.0030.04020.27
5.5.150.0000.04020.22
5.5.140.0070.04020.26
5.5.130.0070.04020.10
5.5.120.0000.04320.20
5.5.110.0030.04020.23
5.5.100.0100.03320.09
5.5.90.0130.03319.92
5.5.80.0030.04020.04
5.5.70.0100.04720.14
5.5.60.0030.04720.14
5.5.50.0030.03719.95
5.5.40.0030.07020.13
5.5.30.0000.04320.08
5.5.20.0000.04320.07
5.5.10.0030.04020.04
5.5.00.0100.03320.04
5.4.450.0030.05019.23
5.4.440.0030.05319.37
5.4.430.0070.04719.13
5.4.420.0030.06719.45
5.4.410.0000.06019.36
5.4.400.0000.05019.04
5.4.390.0000.07318.95
5.4.380.0070.07718.81
5.4.370.0100.07719.06
5.4.360.0100.04318.95
5.4.350.0100.06718.79
5.4.340.0130.04318.96
5.4.320.0000.04019.02
5.4.310.0030.04719.07
5.4.300.0030.03318.96
5.4.290.0030.03318.81
5.4.280.0000.04718.95
5.4.270.0070.03718.97
5.4.260.0070.03718.98
5.4.250.0000.04018.77
5.4.240.0030.03719.22
5.4.230.0070.03318.91
5.4.220.0030.04018.94
5.4.210.0000.04319.03
5.4.200.0030.04318.94
5.4.190.0030.04319.01
5.4.180.0030.04018.77
5.4.170.0070.03718.95
5.4.160.0030.06019.12
5.4.150.0000.04019.12
5.4.140.0070.03316.32
5.4.130.0000.04016.01
5.4.120.0070.03016.30
5.4.110.0070.03316.45
5.4.100.0000.04016.25
5.4.90.0200.06016.38
5.4.80.0030.03716.41
5.4.70.0030.03316.29
5.4.60.0030.03716.41
5.4.50.0030.03716.23
5.4.40.0030.03716.41
5.4.30.0030.03716.18
5.4.20.0070.03316.18
5.4.10.0030.03716.43
5.4.00.0070.02715.46
5.3.290.0030.04314.48
5.3.280.0030.04714.45
5.3.270.0070.04314.59
5.3.260.0030.03714.58
5.3.250.0030.03714.61
5.3.240.0000.04314.58
5.3.230.0030.04014.53
5.3.220.0000.03714.51
5.3.210.0030.03714.40
5.3.200.0070.05714.57
5.3.190.0070.03314.47
5.3.180.0070.03014.41
5.3.170.0000.04314.52
5.3.160.0030.03714.42
5.3.150.0100.03014.51
5.3.140.0130.02714.46
5.3.130.0100.03314.54
5.3.120.0000.04714.52
5.3.110.0030.03314.49
5.3.100.0000.03713.89
5.3.90.0000.04313.96
5.3.80.0170.02313.87
5.3.70.0000.03314.02
5.3.60.0070.02713.91
5.3.50.0000.03313.96
5.3.40.0100.06013.91
5.3.30.0100.06013.82
5.3.20.0070.06713.62
5.3.10.0130.04313.61
5.3.00.0000.04713.64
5.2.170.0030.03310.93
5.2.160.0070.06011.09
5.2.150.0070.04311.16
5.2.140.0070.04011.15
5.2.130.0100.05711.17
5.2.120.0070.04310.93
5.2.110.0030.04010.96
5.2.100.0070.06710.89
5.2.90.0070.07711.10
5.2.80.0070.04311.13
5.2.70.0000.03311.05
5.2.60.0030.06710.99
5.2.50.0130.05311.01
5.2.40.0030.05310.85
5.2.30.0030.05710.92
5.2.20.0130.03310.95
5.2.10.0070.02710.88
5.2.00.0070.05310.75
5.1.60.0070.0539.97
5.1.50.0070.0539.98
5.1.40.0070.05010.02
5.1.30.0030.03310.35
5.1.20.0030.02710.40
5.1.10.0070.05310.13
5.1.00.0200.03710.11
5.0.50.0000.0378.63
5.0.40.0070.0378.39
5.0.30.0030.0508.30
5.0.20.0100.0378.07
5.0.10.0070.0408.04
5.0.00.0000.0608.14
4.4.90.0000.0177.75
4.4.80.0070.0307.75
4.4.70.0000.0277.75
4.4.60.0100.0207.75
4.4.50.0030.0237.75
4.4.40.0030.0307.75
4.4.30.0030.0277.75
4.4.20.0000.0377.75
4.4.10.0000.0407.75
4.4.00.0030.0337.75
4.3.110.0000.0207.75
4.3.100.0030.0337.75
4.3.90.0030.0177.75
4.3.80.0000.0577.75
4.3.70.0030.0337.75
4.3.60.0000.0337.75
4.3.50.0100.0277.75
4.3.40.0000.0577.75
4.3.30.0000.0377.75
4.3.20.0070.0277.75
4.3.10.0000.0337.75
4.3.00.0000.0207.75

preferences:
45.11 ms | 400 KiB | 5 Q