3v4l.org

run code in 300+ PHP versions simultaneously
<?php set_error_handler(function($errorLevel, $errorMessage) { echo 'in set_error_handler' . PHP_EOL; echo 'errorLevel is ' . ($errorLevel == E_RECOVERABLE_ERROR ? '': 'NOT') . 'E_RECOVERABLE_ERROR' . PHP_EOL; echo $errorMessage . PHP_EOL; }); set_exception_handler(function($exception) { echo "Uncaught exception: " , $exception->getMessage(), "\n"; echo get_class($exception); }); function a(array $a){} a(null);

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.0160.00316.75
8.3.50.0140.00319.71
8.3.40.0090.00618.76
8.3.30.0040.01518.84
8.3.20.0080.00021.89
8.3.10.0000.00723.70
8.3.00.0040.00421.95
8.2.180.0090.00618.41
8.2.170.0070.00722.96
8.2.160.0120.00320.55
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0040.00421.05
8.2.120.0070.00026.35
8.2.110.0100.00022.25
8.2.100.0040.00717.84
8.2.90.0030.00517.72
8.2.80.0060.00319.15
8.2.70.0080.00018.04
8.2.60.0040.00417.75
8.2.50.0060.00318.10
8.2.40.0030.00520.55
8.2.30.0000.00719.26
8.2.20.0040.00418.06
8.2.10.0050.00317.89
8.2.00.0080.00018.26
8.1.280.0030.01425.92
8.1.270.0080.00022.04
8.1.260.0050.00326.35
8.1.250.0050.00228.09
8.1.240.0090.00023.84
8.1.230.0070.00322.72
8.1.220.0000.00917.74
8.1.210.0060.00318.77
8.1.200.0080.00017.35
8.1.190.0080.00017.23
8.1.180.0040.00418.10
8.1.170.0040.00418.50
8.1.160.0000.00818.82
8.1.150.0050.00318.83
8.1.140.0070.00019.14
8.1.130.0000.00717.56
8.1.120.0040.00417.43
8.1.110.0030.00617.32
8.1.100.0040.00417.36
8.1.90.0060.00317.42
8.1.80.0000.00817.30
8.1.70.0030.00317.44
8.1.60.0050.00317.52
8.1.50.0000.00817.42
8.1.40.0000.00817.46
8.1.30.0100.00017.57
8.1.20.0000.00817.59
8.1.10.0050.00217.52
8.1.00.0000.00817.33
8.0.300.0000.00820.09
8.0.290.0050.00316.75
8.0.280.0030.00318.36
8.0.270.0000.00717.23
8.0.260.0060.00017.30
8.0.250.0070.00016.93
8.0.240.0030.00516.90
8.0.230.0050.00216.97
8.0.220.0000.00716.90
8.0.210.0000.00716.89
8.0.200.0030.00317.02
8.0.190.0030.00617.02
8.0.180.0040.00416.84
8.0.170.0030.00616.98
8.0.160.0000.00716.98
8.0.150.0030.00316.98
8.0.140.0040.00416.86
8.0.130.0000.00613.41
8.0.120.0000.00716.88
8.0.110.0020.00516.94
8.0.100.0040.00416.78
8.0.90.0030.00517.03
8.0.80.0090.00616.84
8.0.70.0060.00316.96
8.0.60.0070.00016.99
8.0.50.0000.00716.90
8.0.30.0100.00617.09
8.0.20.0110.00917.40
8.0.10.0040.00417.06
8.0.00.0110.01116.80
7.4.330.0050.00015.55
7.4.320.0000.00716.40
7.4.300.0000.00716.45
7.4.290.0030.00316.43
7.4.280.0070.00016.54
7.4.270.0000.00716.50
7.4.260.0030.00316.43
7.4.250.0030.00516.42
7.4.240.0000.00816.59
7.4.230.0000.00716.58
7.4.220.0000.00816.43
7.4.210.0040.01116.57
7.4.200.0030.00316.52
7.4.160.0070.01016.47
7.4.150.0180.00617.40
7.4.140.0100.00917.86
7.4.130.0110.00616.32
7.4.120.0100.00816.41
7.4.110.0030.01816.42
7.4.100.0070.01016.63
7.4.90.0110.00616.31
7.4.80.0110.00619.39
7.4.70.0100.01016.33
7.4.60.0120.00316.44
7.4.50.0110.00416.46
7.4.40.0140.00616.79
7.4.00.0050.01214.98
7.3.330.0050.00013.44
7.3.320.0000.00613.20
7.3.310.0060.00016.23
7.3.300.0000.00616.24
7.3.290.0120.00616.37
7.3.280.0060.00816.36
7.3.270.0150.00417.40
7.3.260.0110.00716.42
7.3.250.0110.00516.54
7.3.240.0080.01116.48
7.3.230.0170.00016.38
7.3.210.0130.00316.69
7.3.200.0130.00316.53
7.3.190.0070.01016.56
7.3.180.0080.00816.57
7.3.170.0070.01016.34
7.3.160.0060.01216.66
7.3.120.0060.01314.58
7.3.110.0090.00614.99
7.3.100.0030.01214.91
7.3.90.0000.01714.61
7.3.80.0030.01014.92
7.3.70.0120.00314.76
7.3.60.0090.00614.89
7.3.50.0000.01514.62
7.3.40.0110.00014.68
7.3.30.0030.00914.59
7.3.20.0030.01016.57
7.3.10.0040.00816.68
7.3.00.0070.00816.52
7.2.330.0110.00816.32
7.2.320.0110.00616.41
7.2.310.0060.01616.34
7.2.300.0080.00816.42
7.2.290.0120.00916.37
7.2.250.0110.00814.66
7.2.240.0070.01315.11
7.2.230.0040.00715.18
7.2.220.0060.00915.13
7.2.210.0000.01115.09
7.2.200.0060.00914.82
7.2.190.0090.00615.04
7.2.180.0080.00815.19
7.2.170.0090.00615.07
7.2.130.0090.00916.44
7.2.120.0080.00616.64
7.2.110.0020.01216.62
7.2.100.0090.00716.78
7.2.90.0060.00816.71
7.2.80.0090.01016.60
7.2.70.0050.00916.74
7.2.60.0110.00616.70
7.2.50.0090.00516.76
7.2.40.0100.00816.64
7.2.30.0060.00716.68
7.2.20.0050.01016.76
7.2.10.0040.00916.81
7.2.00.0210.00217.35
7.1.330.0030.01415.65
7.1.320.0060.01015.71
7.1.310.0090.00915.93
7.1.300.0030.01215.63
7.1.290.0000.01515.80
7.1.280.0060.01015.45
7.1.270.0100.00315.80
7.1.260.0090.00615.93
7.1.250.0120.00515.55
7.1.200.0080.00415.65
7.1.120.0430.01318.38
7.1.110.0170.01416.12
7.1.100.0060.01216.18
7.1.90.0060.00617.63
7.1.80.0060.00817.94
7.1.70.0070.00716.94
7.1.60.0410.01033.20
7.1.50.0180.00732.89
7.1.40.0630.00334.38
7.1.30.0200.00634.57
7.1.20.0150.01534.27
7.1.10.0060.00916.75
7.1.00.0070.00716.73

preferences:
60.18 ms | 400 KiB | 5 Q