3v4l.org

run code in 300+ PHP versions simultaneously
<?php $o = new stdClass; $o->aaa = 1; $o->bbb = false; $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.0120.00318.36
8.3.50.0140.00720.36
8.3.40.0150.00320.18
8.3.30.0070.01018.70
8.3.20.0080.00024.18
8.3.10.0050.00224.66
8.3.00.0080.00026.16
8.2.180.0090.00625.92
8.2.170.0070.00719.00
8.2.160.0130.00022.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0040.00426.16
8.2.110.0030.00621.04
8.2.100.0060.00617.91
8.2.90.0040.00717.75
8.2.80.0040.00418.67
8.2.70.0000.00817.37
8.2.60.0040.00417.60
8.2.50.0030.00517.98
8.2.40.0040.00418.16
8.2.30.0000.00817.94
8.2.20.0040.00419.35
8.2.10.0060.00318.00
8.2.00.0040.00419.24
8.1.280.0000.01425.92
8.1.270.0070.00024.66
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0120.00923.84
8.1.230.0120.00022.67
8.1.220.0080.00018.61
8.1.210.0000.00719.12
8.1.200.0080.00017.47
8.1.190.0040.00417.35
8.1.180.0060.00618.10
8.1.170.0000.00717.62
8.1.160.0040.00418.92
8.1.150.0040.00418.64
8.1.140.0000.00717.45
8.1.130.0000.00719.03
8.1.120.0040.00417.43
8.1.110.0160.00017.40
8.1.100.0140.00317.48
8.1.90.0190.00417.47
8.1.80.0060.01117.27
8.1.70.0040.01417.31
8.1.60.0120.00817.61
8.1.50.0130.00717.36
8.1.40.0160.00417.50
8.1.30.0100.01017.54
8.1.20.0190.00017.55
8.1.10.0180.00017.48
8.1.00.0090.00917.57
8.0.300.0000.00719.98
8.0.290.0000.00816.75
8.0.280.0040.00418.36
8.0.270.0040.00417.24
8.0.260.0030.00318.46
8.0.250.0000.00616.93
8.0.240.0040.01316.80
8.0.230.0040.01316.80
8.0.220.0110.00516.86
8.0.210.0130.00216.75
8.0.200.0000.01616.93
8.0.190.0130.00216.84
8.0.180.0150.00016.92
8.0.170.0070.00716.79
8.0.160.0110.00416.82
8.0.150.0130.00316.75
8.0.140.0100.00516.73
8.0.130.0130.00316.80
8.0.120.0150.00016.88
8.0.110.0070.00716.79
8.0.100.0080.00816.85
8.0.90.0120.00316.82
8.0.80.0120.00316.78
8.0.70.0110.00516.74
8.0.60.0140.00216.83
8.0.50.0060.00916.77
8.0.30.0090.00616.77
8.0.20.0000.01416.97
8.0.10.0040.01117.01
7.4.330.0050.00015.55
7.4.320.0120.00416.50
7.4.300.0120.00416.60
7.4.290.0070.00416.15
7.4.280.0150.00316.43
7.4.270.0120.00216.46
7.4.260.0050.00516.26
7.4.250.0030.00716.38
7.4.240.0100.00016.45
7.4.230.0020.00816.07
7.4.220.0000.01016.23
7.4.210.0070.00316.15
7.4.200.0100.00016.24
7.4.190.0060.00316.53
7.4.180.0030.00815.86
7.4.160.0030.00716.29
7.4.150.0100.00016.43
7.4.140.0000.01016.27
7.4.130.0100.00016.02
7.4.120.0100.00015.93
7.4.110.0030.00715.99
7.4.100.0050.00516.33
7.4.90.0070.00216.44
7.4.80.0050.00516.27
7.4.70.0040.00616.21
7.4.60.0060.00316.40
7.4.50.0080.00316.02
7.4.40.0030.00816.09
7.4.30.0030.00716.17
7.4.20.0110.00016.32
7.4.10.0050.00516.45
7.4.00.0050.00516.05

preferences:
48.82 ms | 401 KiB | 5 Q