3v4l.org

run code in 300+ PHP versions simultaneously
<?php $o = new stdClass; $o->aaa = 1; $a = [$o]; var_dump(json_encode($a));

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.0040.01118.31
8.3.50.0150.00620.07
8.3.40.0110.00720.46
8.3.30.0160.00718.60
8.3.20.0060.00324.18
8.3.10.0080.00024.66
8.3.00.0150.00326.16
8.2.180.0070.00725.92
8.2.170.0040.01122.96
8.2.160.0070.00722.96
8.2.150.0070.00025.66
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0070.00026.16
8.2.110.0120.00619.19
8.2.100.0060.00617.72
8.2.90.0080.00017.50
8.2.80.0040.00418.75
8.2.70.0060.00317.63
8.2.60.0060.00317.50
8.2.50.0050.00317.98
8.2.40.0030.00618.16
8.2.30.0050.00318.14
8.2.20.0000.00719.28
8.2.10.0030.00517.97
8.2.00.0000.00719.16
8.1.280.0060.00925.92
8.1.270.0040.00424.66
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0100.00720.31
8.1.230.0110.00019.03
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0030.00617.48
8.1.190.0000.00817.35
8.1.180.0000.01018.10
8.1.170.0030.00617.62
8.1.160.0000.00718.84
8.1.150.0040.00418.59
8.1.140.0040.00417.54
8.1.130.0030.00319.07
8.1.120.0070.00017.47
8.1.110.0170.00017.38
8.1.100.0080.00817.36
8.1.90.0160.00017.41
8.1.80.0110.00617.35
8.1.70.0080.00817.40
8.1.60.0060.01317.43
8.1.50.0090.00917.49
8.1.40.0080.01117.53
8.1.30.0070.01217.68
8.1.20.0190.00317.61
8.1.10.0180.00017.56
8.1.00.0080.01117.50
8.0.300.0030.00618.77
8.0.290.0070.00016.75
8.0.280.0030.00318.35
8.0.270.0040.00417.27
8.0.260.0040.00418.43
8.0.250.0030.00316.91
8.0.240.0120.00416.84
8.0.230.0130.00216.96
8.0.220.0130.00316.85
8.0.210.0070.00716.85
8.0.200.0100.00516.95
8.0.190.0100.00516.89
8.0.180.0120.00316.95
8.0.170.0100.00516.75
8.0.160.0080.00716.73
8.0.150.0080.00816.69
8.0.140.0090.00616.74
8.0.130.0120.00416.78
8.0.120.0150.00016.83
8.0.110.0100.00516.88
8.0.100.0050.01116.87
8.0.90.0090.00516.80
8.0.80.0110.00516.81
8.0.70.0100.00516.85
8.0.60.0110.00416.70
8.0.50.0070.00716.65
8.0.30.0110.00416.82
8.0.20.0150.00016.78
8.0.10.0070.00716.94
7.4.330.0030.00315.55
7.4.320.0140.00316.55
7.4.300.0120.00616.51
7.4.290.0110.00816.41
7.4.280.0030.00716.09
7.4.270.0070.00416.12
7.4.260.0070.00416.40
7.4.250.0050.00516.51
7.4.240.0050.00516.38
7.4.230.0040.00815.95
7.4.220.0060.00416.37
7.4.210.0100.00016.25
7.4.200.0070.00316.23
7.4.190.0070.00316.59
7.4.180.0030.00816.02
7.4.160.0100.00016.12
7.4.150.0060.00616.39
7.4.140.0040.00616.13
7.4.130.0000.01116.05
7.4.120.0100.00015.77
7.4.110.0080.00315.99
7.4.100.0100.00016.46
7.4.90.0030.00616.45
7.4.80.0050.00516.39
7.4.70.0030.00616.27
7.4.60.0000.01016.18
7.4.50.0050.00516.06
7.4.40.0040.00716.07
7.4.30.0030.00616.27
7.4.20.0050.00516.30
7.4.10.0030.00816.31
7.4.00.0070.00316.14

preferences:
38.28 ms | 401 KiB | 5 Q