3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = PHP_INT_MAX * PHP_INT_MAX; $bb = json_encode($a, true); $b = json_decode($bb); var_dump($a); var_dump($b);

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.0120.00618.30
8.3.50.0140.00019.92
8.3.40.0120.00619.05
8.3.30.0140.00018.49
8.3.20.0000.00724.18
8.3.10.0040.00424.66
8.3.00.0080.00026.16
8.2.180.0150.00625.92
8.2.170.0100.01018.96
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0000.00726.16
8.2.110.0070.00420.45
8.2.100.0080.00417.66
8.2.90.0040.00419.14
8.2.80.0040.00417.97
8.2.70.0000.00917.50
8.2.60.0000.00817.92
8.2.50.0000.00818.07
8.2.40.0080.00019.47
8.2.30.0000.00717.56
8.2.20.0000.00719.45
8.2.10.0060.00317.73
8.2.00.0070.00019.19
8.1.280.0090.00925.92
8.1.270.0040.00424.01
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0060.00323.75
8.1.230.0040.00822.12
8.1.220.0050.00318.77
8.1.210.0080.00018.98
8.1.200.0100.00017.22
8.1.190.0080.00017.22
8.1.180.0070.00018.10
8.1.170.0060.00320.54
8.1.160.0040.00419.06
8.1.150.0060.00318.48
8.1.140.0070.00017.29
8.1.130.0040.00418.87
8.1.120.0070.00017.36
8.1.110.0000.00717.28
8.1.100.0040.00417.43
8.1.90.0070.00017.36
8.1.80.0030.00517.47
8.1.70.0030.00517.20
8.1.60.0000.00817.42
8.1.50.0050.00517.38
8.1.40.0030.00517.46
8.1.30.0080.00017.53
8.1.20.0050.00317.59
8.1.10.0000.00717.41
8.1.00.0000.00917.38
8.0.300.0000.00819.93
8.0.290.0070.00017.18
8.0.280.0040.00418.53
8.0.270.0000.00716.75
8.0.260.0060.00018.25
8.0.250.0000.00716.91
8.0.240.0040.00416.86
8.0.230.0030.00316.78
8.0.220.0080.00016.86
8.0.210.0040.00416.84
8.0.200.0000.00716.84
8.0.190.0030.00516.84
8.0.180.0030.00316.84
8.0.170.0080.00016.72
8.0.160.0030.00316.81
8.0.150.0030.00316.80
8.0.140.0040.00316.65
8.0.130.0030.00313.32
8.0.120.0000.00613.21
8.0.110.0090.00313.24
8.0.100.0080.00413.19
8.0.90.0040.00813.24
8.0.80.0100.00213.21
8.0.70.0120.00013.19
8.0.60.0040.00813.23
8.0.50.0080.00413.24
8.0.30.0040.00813.23
8.0.20.0120.00013.20
8.0.10.0120.00013.42
8.0.00.0040.00413.36
7.4.330.0000.00415.55
7.4.320.0000.00616.46
7.4.300.0000.00616.49
7.4.290.0000.00816.29
7.4.280.0070.00016.42
7.4.270.0070.00016.54
7.4.260.0030.00313.15
7.4.250.0110.00413.31
7.4.240.0130.00013.07
7.4.230.0070.00713.31
7.4.220.0040.00813.22
7.4.210.0130.00013.23
7.4.200.0120.00013.22
7.4.190.0060.00613.21
7.4.180.0120.00013.18
7.4.160.0120.00013.23
7.4.150.0060.00613.20
7.4.140.0100.00213.18
7.4.130.0100.00213.05
7.4.120.0090.00213.09
7.4.110.0130.00013.18
7.4.100.0090.00213.13
7.4.90.0120.00013.20
7.4.80.0040.00813.09
7.4.70.0090.00313.16
7.4.60.0120.00013.05
7.4.50.0090.00312.99
7.4.40.0090.00313.05
7.4.30.0120.00013.04
7.4.20.0080.00413.09
7.4.10.0060.00612.99
7.4.00.0120.00013.04
7.3.330.0030.00315.95
7.3.320.0050.00013.01
7.3.310.0090.00312.95
7.3.300.0100.00212.93
7.3.290.0120.00013.02
7.3.280.0000.01312.94
7.3.270.0120.00013.05
7.3.260.0090.00413.00
7.3.250.0100.00313.03
7.3.240.0100.00212.98
7.3.230.0130.00012.95
7.3.220.0110.00212.79
7.3.210.0130.00012.90
7.3.200.0140.00012.95
7.3.190.0000.01312.92
7.3.180.0130.00012.95
7.3.170.0110.00212.99
7.3.160.0090.00412.94
7.3.150.0060.00612.94
7.3.140.0090.00312.80
7.3.130.0060.00712.88
7.3.120.0100.00212.99
7.3.110.0100.00312.78
7.3.100.0090.00312.84
7.3.90.0090.00313.22
7.3.80.0120.00012.88
7.3.70.0120.00013.04
7.3.60.0000.00713.05
7.3.50.0110.00313.11
7.3.40.0070.00712.97
7.3.30.0000.01313.02
7.3.20.0100.00314.88
7.3.10.0050.00514.88
7.3.00.0110.00314.88

preferences:
61.1 ms | 400 KiB | 5 Q