3v4l.org

run code in 300+ PHP versions simultaneously
<?php set_error_handler(function (int $errorNo, string $message, string $file, int $line): bool { if ($errorNo == E_DEPRECATED) { throw new ErrorException($message, 0, $errorNo, $file, $line); } return TRUE; }); class Test { function try() { $this->property = 'hello'; } } $test = new Test(); $test->try();

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.5.00.0130.00920.33
8.4.150.0010.00214.05
8.4.140.0120.00917.85
8.4.130.0100.00018.68
8.4.120.0060.01018.09
8.4.110.0090.01124.24
8.4.100.0120.00218.74
8.4.90.0040.00520.43
8.4.80.0170.00418.68
8.4.70.0070.01318.38
8.4.60.0120.00818.84
8.4.50.0090.00918.82
8.4.40.0070.01117.94
8.4.30.0120.00918.82
8.4.20.0290.00617.86
8.4.10.0130.01317.62
8.3.280.0150.00618.48
8.3.270.0100.00916.78
8.3.260.0060.00916.98
8.3.250.0100.00916.59
8.3.240.0090.00516.63
8.3.230.0110.00816.82
8.3.220.0020.00619.23
8.3.210.0100.00818.79
8.3.200.0050.00416.75
8.3.190.0110.00917.24
8.3.180.0120.00717.23
8.3.170.0090.00917.40
8.3.160.0040.01416.71
8.3.150.0120.00816.59
8.3.140.0200.00016.37
8.3.130.0090.00916.39
8.3.120.0140.00416.70
8.3.110.0180.00016.68
8.3.100.0120.00816.45
8.3.90.0200.00016.70
8.3.80.0110.00916.86
8.3.70.0170.00316.59
8.3.60.0140.00816.71
8.3.50.0130.00818.38
8.3.40.0160.00517.45
8.3.30.0180.00317.31
8.3.20.0190.00017.68
8.3.10.0130.00317.22
8.3.00.0080.00419.32
8.2.290.0150.00616.61
8.2.280.0070.00220.16
8.2.270.0000.00818.77
8.2.260.0170.00016.52
8.2.250.0140.00318.40
8.2.240.0100.00716.84
8.2.230.0140.00516.23
8.2.220.0120.00616.71
8.2.210.0140.00316.38
8.2.200.0180.00016.67
8.2.190.0100.00718.30
8.2.180.0160.00316.65
8.2.170.0160.00317.50
8.2.160.0180.00417.59
8.2.150.0160.00317.57
8.2.140.0210.00317.09
8.2.130.0280.00317.41
8.2.120.0140.00717.43
8.2.110.0070.01117.71
8.2.100.0180.00317.48
8.2.90.0250.00617.54
8.2.80.0180.00017.52
8.2.70.0220.00919.21
8.2.60.0100.01017.36
8.2.50.0190.00917.05
8.2.40.0130.00317.41
8.2.30.0260.00317.28
8.2.20.0270.00017.27
8.2.10.0110.00617.13
8.2.00.0140.00317.33
8.1.320.0140.00616.55
8.1.310.0060.00716.17

preferences:
30.72 ms | 403 KiB | 5 Q