3v4l.org

run code in 300+ PHP versions simultaneously
<?php set_error_handler(function($num, $msg, $file, $line) { throw new ErrorException($msg, 0, $num, $file, $line); }); set_exception_handler(function($e) { echo '** Uncaught Exception **'.PHP_EOL; echo (string)toString(); }); try { // Will be caught echo array().PHP_EOL; } catch(ErrorException $e) {} // Will not be caught echo array().PHP_EOL;

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.0140.00318.68
8.3.50.0130.00521.25
8.3.40.0070.00719.00
8.3.30.0080.00818.84
8.3.20.0040.00420.13
8.3.10.0030.00523.67
8.3.00.0080.00022.43
8.2.180.0120.01218.29
8.2.170.0070.01422.96
8.2.160.0130.00320.35
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0080.00026.16
8.2.120.0060.00317.75
8.2.110.0060.00319.39
8.2.100.0080.00317.84
8.2.90.0000.00919.04
8.2.80.0040.00417.97
8.2.70.0080.00517.25
8.2.60.0040.00418.03
8.2.50.0050.00318.10
8.2.40.0000.00820.93
8.2.30.0030.00619.89
8.2.20.0000.00817.86
8.2.10.0040.00418.08
8.2.00.0000.00818.05
8.1.280.0120.00325.92
8.1.270.0040.01120.17
8.1.260.0030.00526.35
8.1.250.0040.00428.09
8.1.240.0000.00922.62
8.1.230.0080.00317.77
8.1.220.0030.00517.74
8.1.210.0000.00818.77
8.1.200.0030.00617.48
8.1.190.0030.00617.35
8.1.180.0000.00818.10
8.1.170.0000.00818.69
8.1.160.0000.00721.95
8.1.150.0030.00318.78
8.1.140.0050.00317.46
8.1.130.0000.00717.52
8.1.120.0070.00017.37
8.1.110.0050.00217.36
8.1.100.0040.00417.53
8.1.90.0000.00717.45
8.1.80.0070.00017.54
8.1.70.0070.00017.46
8.1.60.0040.00417.49
8.1.50.0110.00017.46
8.1.40.0040.00417.54
8.1.30.0000.00917.60
8.1.20.0050.00217.55
8.1.10.0040.00417.55
8.1.00.0080.00017.56
8.0.300.0000.00818.77
8.0.290.0000.00716.75
8.0.280.0030.00318.45
8.0.270.0030.00317.13
8.0.260.0060.00316.80
8.0.250.0050.00216.99
8.0.240.0030.00316.96
8.0.230.0000.00716.91
8.0.220.0040.00416.83
8.0.210.0000.00716.80
8.0.200.0060.00316.99
8.0.190.0000.00817.01
8.0.180.0000.00717.02
8.0.170.0040.00416.88
8.0.160.0030.00317.04
8.0.150.0000.00716.89
8.0.140.0070.00016.82
8.0.130.0020.00513.42
8.0.120.0040.00416.98
8.0.110.0040.00416.99
8.0.100.0000.00816.97
8.0.90.0000.00716.95
8.0.80.0120.00316.96
8.0.70.0040.00417.00
8.0.60.0000.00817.02
8.0.50.0040.00416.83
8.0.30.0090.00717.15
8.0.20.0100.01017.40
8.0.10.0040.00416.95
8.0.00.0110.00816.87
7.4.330.0030.00315.08
7.4.320.0030.00316.53
7.4.300.0060.00016.64
7.4.290.0000.00716.49
7.4.280.0040.00416.54
7.4.270.0040.00416.62
7.4.260.0040.00416.64
7.4.250.0040.00716.39
7.4.240.0000.00716.56
7.4.230.0030.00316.50
7.4.220.0120.01216.56
7.4.210.0090.00616.48
7.4.200.0030.00316.61
7.4.160.0120.00916.48
7.4.150.0080.00917.40
7.4.140.0060.01417.86
7.4.130.0120.00816.61
7.4.120.0150.00416.59
7.4.110.0110.00616.55
7.4.100.0120.00616.33
7.4.90.0100.00716.56
7.4.80.0060.01219.39
7.4.70.0040.01216.53
7.4.60.0090.00616.45
7.4.50.0030.00316.53
7.4.40.0090.00616.66
7.4.30.0090.00916.64
7.4.00.0100.00715.13
7.3.330.0000.00613.27
7.3.320.0000.00613.37
7.3.310.0030.00316.46
7.3.300.0060.00016.16
7.3.290.0070.00016.11
7.3.280.0090.01016.34
7.3.270.0090.00917.40
7.3.260.0140.01116.23
7.3.250.0100.00916.43
7.3.240.0100.00716.57
7.3.230.0100.00716.54
7.3.210.0030.01416.30
7.3.200.0100.00719.39
7.3.190.0100.00616.60
7.3.180.0080.00816.23
7.3.170.0130.00416.32
7.3.160.0140.00716.34
7.2.330.0090.00916.68
7.2.320.0130.00316.68
7.2.310.0040.01416.54
7.2.300.0060.00916.27
7.2.290.0030.01416.43
7.2.80.0070.00716.67
7.2.60.0070.00716.89
7.2.00.0060.00919.52
7.1.200.0130.00315.75
7.1.100.0100.00718.21
7.1.70.0040.00416.83
7.1.60.0060.01820.03
7.1.50.0130.01016.90
7.1.00.0030.07722.46
7.0.200.0210.00316.46
7.0.60.0130.08319.93
7.0.50.0100.07717.84
7.0.40.0030.07020.11
7.0.30.0130.06320.12
7.0.20.0370.07020.09
7.0.10.0100.07720.21
7.0.00.0100.04020.16
5.6.280.0030.05020.90
5.6.210.0030.04020.63
5.6.200.0030.07718.19
5.6.190.0070.05720.47
5.6.180.0300.06020.57
5.6.170.0330.08020.50
5.6.160.0130.07020.54
5.6.150.0100.08018.29
5.6.140.0070.06018.28
5.6.130.0030.05018.18
5.6.120.0100.05021.02
5.6.110.0130.08020.95
5.6.100.0030.09020.97
5.6.90.0030.04021.03
5.6.80.0130.07720.42
5.5.350.0170.07720.32
5.5.340.0030.04318.08
5.5.330.0030.05720.19
5.5.320.0000.08320.37
5.5.310.0170.05720.25
5.5.300.0130.07718.07
5.5.290.0100.08017.95
5.5.280.0100.08020.77
5.5.270.0070.08320.73
5.5.260.0100.07320.87
5.5.250.0170.07320.69
5.5.240.3600.04020.07
5.4.450.0730.06319.58
5.4.440.0800.07719.60
5.4.430.0870.05019.16
5.4.420.0900.04319.58
5.4.410.0670.05719.18
5.4.400.0900.05019.26
5.4.390.0730.06318.84
5.4.380.0830.06018.84
5.4.370.0830.05319.38
5.4.360.0900.04719.06
5.4.350.0900.04319.06
5.4.340.0730.06319.12
5.4.320.0900.04319.25
5.4.310.0800.05319.06
5.4.300.0870.05018.98
5.4.290.0830.05319.25
5.4.280.0800.06019.28
5.4.270.1030.06319.30
5.4.260.0670.05718.98
5.4.250.0870.05719.27
5.4.240.1030.06018.86
5.4.230.0670.05718.97
5.4.220.0800.05319.28
5.4.210.0670.05719.19
5.4.200.0430.05316.78
5.4.190.0130.05019.13
5.4.180.0170.04319.13
5.4.170.0070.05719.28
5.4.160.0800.04719.00
5.4.150.0730.05319.24
5.4.140.0630.05716.41
5.4.130.0730.04716.53
5.4.120.0670.05316.55
5.4.110.0670.05016.41
5.4.100.0770.05716.34
5.4.90.0670.05316.55
5.4.80.0800.04016.32
5.4.70.0730.05716.48
5.4.60.0330.06016.48
5.4.50.0030.07716.42
5.4.40.0200.07316.27
5.4.30.0470.05316.50
5.4.20.0370.06016.32

preferences:
48.42 ms | 401 KiB | 5 Q