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.60.0150.00018.56
8.3.50.0070.01416.51
8.3.40.0130.00618.67
8.3.30.0040.01118.72
8.3.20.0000.00824.18
8.3.10.0030.00624.66
8.3.00.0040.00426.16
8.2.180.0140.00425.92
8.2.170.0110.00319.09
8.2.160.0060.01322.96
8.2.150.0080.00025.66
8.2.140.0000.00724.66
8.2.130.0040.00426.16
8.2.120.0040.00418.99
8.2.110.0060.00320.54
8.2.100.0100.00318.04
8.2.90.0050.00318.06
8.2.80.0000.00819.11
8.2.70.0030.00617.50
8.2.60.0080.00018.04
8.2.50.0040.00418.05
8.2.40.0050.00318.21
8.2.30.0040.00418.02
8.2.20.0000.00718.17
8.2.10.0040.00419.20
8.2.00.0040.00419.08
8.1.280.0140.00025.92
8.1.270.0000.00723.99
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0060.00322.14
8.1.230.0080.00420.89
8.1.220.0060.00317.74
8.1.210.0030.00518.77
8.1.200.0000.00817.38
8.1.190.0050.00317.35
8.1.180.0080.00018.10
8.1.170.0050.00318.96
8.1.160.0090.00018.79
8.1.150.0040.00418.91
8.1.140.0000.00818.89
8.1.130.0030.00320.16
8.1.120.0000.00717.43
8.1.110.0080.00017.39
8.1.100.0080.00017.32
8.1.90.0040.00417.51
8.1.80.0070.00017.49
8.1.70.0030.00617.30
8.1.60.0000.00717.62
8.1.50.0070.00017.43
8.1.40.0000.00817.43
8.1.30.0000.00717.64
8.1.20.0040.00417.55
8.1.10.0060.00317.50
8.1.00.0060.00317.32
8.0.300.0060.00320.16
8.0.290.0000.00916.75
8.0.280.0030.00318.43
8.0.270.0040.00418.04
8.0.260.0030.00318.51
8.0.250.0060.00316.96
8.0.240.0000.00616.79
8.0.230.0070.00016.85
8.0.220.0000.00616.77
8.0.210.0040.00416.89
8.0.200.0050.00316.91
8.0.190.0040.00416.85
8.0.180.0030.00516.88
8.0.170.0050.00316.79
8.0.160.0000.00716.88
8.0.150.0040.00416.88
8.0.140.0000.00716.80
8.0.130.0000.00513.35
8.0.120.0030.00516.83
8.0.110.0030.00316.98
8.0.100.0040.00416.94
8.0.90.0040.00316.90
8.0.80.0030.01216.89
8.0.70.0050.00216.85
8.0.60.0000.00716.73
8.0.50.0030.00316.80
8.0.30.0170.00316.75
8.0.20.0080.01117.23
8.0.10.0140.00517.06
8.0.00.0100.00716.94
7.4.330.0020.00215.55
7.4.320.0000.00616.57
7.4.300.0060.00316.52
7.4.290.0030.00616.54
7.4.280.0070.00016.40
7.4.270.0020.00516.60
7.4.260.0030.00313.37
7.4.250.0040.00416.38
7.4.240.0030.00316.55
7.4.230.0000.00716.27
7.4.220.0010.00616.58
7.4.210.0070.00916.52
7.4.200.0040.00416.55
7.4.140.0090.00716.39
7.4.130.0140.00416.53
7.4.120.0190.00016.41
7.4.110.0090.00916.27
7.4.100.0090.00916.32
7.4.90.0190.00316.32
7.4.80.0180.00516.21
7.4.70.0060.01216.33
7.4.60.0090.00916.29
7.4.50.0100.00716.26
7.4.40.0130.00416.22
7.4.30.0040.01416.41
7.4.20.0100.00716.28
7.4.10.0060.01216.22
7.4.00.0110.00616.62
7.3.330.0000.00716.33
7.3.320.0070.00013.03
7.3.310.0080.00016.08
7.3.300.0030.00316.24
7.3.290.0100.00416.22
7.3.260.0090.00916.29
7.3.250.0120.00816.45
7.3.240.0060.01216.19
7.3.230.0090.00616.48
7.3.220.0080.00816.14
7.3.210.0050.01916.17
7.3.200.0100.00616.44
7.3.190.0090.00916.36
7.3.180.0100.00716.41
7.3.170.0060.01116.33
7.3.160.0090.00816.25
7.3.150.0060.01216.39
7.3.140.0110.00516.21
7.3.130.0120.00516.39
7.3.120.0060.00916.25
7.3.110.0110.00616.24
7.3.100.0120.00416.25
7.3.90.0080.00816.24
7.3.80.0100.00716.50
7.3.70.0100.00716.35
7.3.60.0040.01416.26
7.3.50.0090.00816.14
7.3.40.0120.00416.27
7.3.30.0130.00416.28
7.3.20.0220.00616.21
7.3.10.0100.00716.16
7.3.00.0110.00716.43

preferences:
57.49 ms | 400 KiB | 5 Q