3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [1, [2, 3]]; $array[1][1] = &$array; json_encode($array); echo json_last_error_msg() . ', ' . json_last_error ();

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.130.0080.00018.46
8.3.120.0060.01318.82
8.3.110.0060.00320.94
8.3.100.0060.00316.79
8.3.90.0040.00426.77
8.3.80.0050.00519.36
8.3.70.0140.00716.63
8.3.60.0110.00418.55
8.3.50.0090.00824.47
8.3.40.0160.00018.57
8.3.30.0070.00718.75
8.3.20.0040.00424.18
8.3.10.0050.00324.66
8.3.00.0030.00626.16
8.2.250.0070.01116.82
8.2.240.0090.00618.74
8.2.230.0100.00022.58
8.2.220.0060.00324.06
8.2.210.0050.00326.77
8.2.200.0050.00318.88
8.2.190.0100.01016.58
8.2.180.0090.01225.92
8.2.170.0120.00318.89
8.2.160.0140.00022.96
8.2.150.0040.00425.66
8.2.140.0030.00624.66
8.2.130.0070.00026.16
8.2.120.0100.00318.93
8.2.110.0070.00319.27
8.2.100.0040.00817.78
8.2.90.0040.00417.63
8.2.80.0030.00618.73
8.2.70.0060.00317.75
8.2.60.0030.00617.93
8.2.50.0050.00318.05
8.2.40.0000.00718.19
8.2.30.0040.00418.17
8.2.20.0040.00418.09
8.2.10.0000.00719.15
8.2.00.0070.00019.12
8.1.300.0090.00019.63
8.1.290.0090.00030.84
8.1.280.0090.00625.92
8.1.270.0040.00424.66
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0060.00319.13
8.1.230.0080.00320.88
8.1.220.0040.00417.74
8.1.210.0090.00018.77
8.1.200.0030.00617.22
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0040.00418.88
8.1.160.0000.00718.88
8.1.150.0030.00418.79
8.1.140.0040.00418.87
8.1.130.0000.00720.08
8.1.120.0040.00417.41
8.1.110.0000.00817.47
8.1.100.0040.00417.50
8.1.90.0060.00317.51
8.1.80.0040.00817.42
8.1.70.0000.00717.41
8.1.60.0030.00617.61
8.1.50.0040.00417.39
8.1.40.0040.00717.53
8.1.30.0000.00717.57
8.1.20.0000.00917.53
8.1.10.0000.00817.50
8.1.00.0000.00817.34
8.0.300.0000.00720.02
8.0.290.0000.00716.75
8.0.280.0000.00718.43
8.0.270.0070.00018.03
8.0.260.0030.00318.56
8.0.250.0040.00416.80
8.0.240.0030.00516.96
8.0.230.0000.00816.89
8.0.220.0030.00316.84
8.0.210.0000.00816.86
8.0.200.0000.00616.99
8.0.190.0040.00416.93
8.0.180.0030.00316.79
8.0.170.0040.00716.79
8.0.160.0020.00516.95
8.0.150.0000.00816.81
8.0.140.0050.00516.73
8.0.130.0000.00513.23
8.0.120.0080.00016.84
8.0.110.0050.00316.91
8.0.100.0000.00716.88
8.0.90.0030.00316.88
8.0.80.0090.00916.84
8.0.70.0040.00416.91
8.0.60.0000.00716.84
8.0.50.0040.00416.77
8.0.30.0100.00716.92
8.0.20.0150.00317.00
8.0.10.0210.01217.20
8.0.00.0290.00716.95
7.4.330.0000.00515.55
7.4.320.0060.00016.45
7.4.300.0030.00316.55
7.4.290.0040.00416.54
7.4.280.0040.00716.59
7.4.270.0000.00716.59
7.4.260.0030.00313.26
7.4.250.0000.00716.56
7.4.240.0080.00016.59
7.4.230.0070.00016.33
7.4.220.0020.00516.29
7.4.210.0050.01116.49
7.4.200.0050.00216.41
7.4.140.0210.00916.52
7.4.130.0230.00816.51
7.4.120.0200.01016.43
7.4.110.0290.00316.61
7.4.100.0270.00516.53
7.4.90.0240.00816.31
7.4.80.0270.01416.45
7.4.70.0200.00315.91
7.4.60.0210.01316.53
7.4.50.0310.00016.45
7.4.40.0220.00816.52
7.4.30.0150.01115.89
7.4.20.0120.00616.38
7.4.10.0060.01216.48
7.4.00.0130.00416.30
7.3.330.0000.00816.12
7.3.320.0060.00013.01
7.3.310.0070.00016.25
7.3.300.0040.00416.25
7.3.290.0080.00916.25
7.3.260.0110.00616.52
7.3.250.0250.00916.53
7.3.240.0300.00416.44
7.3.230.0250.00616.58
7.3.220.0360.00016.21
7.3.210.0340.00016.25
7.3.200.0140.00816.10
7.3.190.0230.01216.58
7.3.180.0300.00316.23
7.3.170.0240.00816.25
7.3.160.0160.01515.84
7.3.150.0170.00616.39
7.3.140.0100.00716.29
7.3.130.0140.00816.27
7.3.120.0110.00916.46
7.3.110.0060.01816.38
7.3.100.0060.01716.49
7.3.90.0080.01516.31
7.3.80.0100.00816.33
7.3.70.0110.00616.36
7.3.60.0070.01016.31
7.3.50.0130.00316.25
7.3.40.0090.00916.40
7.3.30.0070.01016.22
7.3.20.0160.00816.38
7.3.10.0090.00916.29
7.3.00.0140.00316.35

preferences:
33.23 ms | 403 KiB | 5 Q