3v4l.org

run code in 300+ PHP versions simultaneously
<?php function errorHandler($errno, $errstr, $errfile, $errline) { throw new Exception($errstr); } function exceptionHandler($e) { echo "exceptionHandler: '", $e->getMessage(), "'\n"; } set_error_handler("errorHandler"); set_exception_handler("exceptionHandler"); // this works as expected //$a = $foo; // this does not $a = $foo();

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.0110.01116.63
8.3.50.0310.00822.05
8.3.40.0110.00418.65
8.3.30.0090.00918.47
8.3.20.0000.00720.15
8.3.10.0000.00723.52
8.3.00.0040.00419.27
8.2.180.0150.00318.38
8.2.170.0140.00022.96
8.2.160.0060.00920.53
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0000.00817.50
8.2.120.0070.00026.35
8.2.110.0120.00321.12
8.2.100.0090.00317.78
8.2.90.0060.00319.07
8.2.80.0030.00617.97
8.2.70.0030.00517.63
8.2.60.0040.00417.80
8.2.50.0030.00618.10
8.2.40.0000.00819.21
8.2.30.0000.00720.62
8.2.20.0040.00717.63
8.2.10.0040.00417.99
8.2.00.0070.00017.98
8.1.280.0090.00925.92
8.1.270.0090.00623.99
8.1.260.0040.00428.09
8.1.250.0070.00028.09
8.1.240.0120.00922.75
8.1.230.0100.00317.70
8.1.220.0080.00017.79
8.1.210.0040.00418.77
8.1.200.0060.00317.25
8.1.190.0080.00017.35
8.1.180.0040.00418.10
8.1.170.0040.00418.76
8.1.160.0030.00522.08
8.1.150.0080.00018.83
8.1.140.0040.00419.50
8.1.130.0030.00317.64
8.1.120.0000.00717.32
8.1.110.0070.00017.32
8.1.100.0000.00717.39
8.1.90.0000.00717.40
8.1.80.0000.00717.44
8.1.70.0000.00717.38
8.1.60.0070.00017.52
8.1.50.0060.00317.47
8.1.40.0060.00317.40
8.1.30.0040.00417.43
8.1.20.0050.00217.45
8.1.10.0000.00817.49
8.1.00.0000.00717.46
8.0.300.0040.00418.77
8.0.290.0080.00016.63
8.0.280.0080.00018.49
8.0.270.0000.00717.24
8.0.260.0000.00717.25
8.0.250.0040.00417.04
8.0.240.0030.00616.98
8.0.230.0030.00716.95
8.0.220.0070.00016.82
8.0.210.0040.00416.94
8.0.200.0000.00716.96
8.0.190.0030.00316.94
8.0.180.0040.00416.98
8.0.170.0130.00016.89
8.0.160.0040.00416.79
8.0.150.0070.00016.92
8.0.140.0040.00416.88
8.0.130.0000.00613.39
8.0.120.0000.00816.81
8.0.110.0040.00417.04
8.0.100.0050.00217.02
8.0.90.0040.00416.87
8.0.80.0070.01416.88
8.0.70.0000.00916.75
8.0.60.0040.00416.82
8.0.50.0050.00316.84
8.0.30.0080.01017.10
8.0.20.0150.01517.40
8.0.10.0000.00716.97
8.0.00.0150.00516.76
7.4.330.0020.00216.82
7.4.320.0000.00616.37
7.4.300.0000.00716.52
7.4.290.0050.00316.43
7.4.280.0030.00616.39
7.4.270.0070.00016.65
7.4.260.0000.00716.42
7.4.250.0070.00016.56
7.4.240.0080.00016.60
7.4.230.0000.00716.40
7.4.220.0140.00416.64
7.4.210.0090.00516.52
7.4.200.0020.00516.36
7.4.160.0060.01016.48
7.4.150.0160.01817.40
7.4.140.0140.00517.86
7.4.130.0100.00716.47
7.4.120.0100.01016.53
7.4.110.0100.00616.43
7.4.100.0170.00316.39
7.4.90.0090.00916.73
7.4.80.0090.01119.39
7.4.70.0060.01216.43
7.4.60.0030.01316.38
7.4.50.0000.01416.47
7.4.40.0040.01816.64
7.4.30.0120.00916.50
7.4.00.0100.00715.04
7.3.330.0030.00313.32
7.3.320.0000.00713.10
7.3.310.0000.00716.36
7.3.300.0030.00316.32
7.3.290.0000.00716.14
7.3.280.0110.00516.33
7.3.270.0140.01017.40
7.3.260.0070.01016.31
7.3.250.0090.00916.41
7.3.240.0110.00916.48
7.3.230.0090.01216.39
7.3.210.0100.00616.47
7.3.200.0060.01016.30
7.3.190.0110.00616.54
7.3.180.0060.01016.28
7.3.170.0100.00616.49
7.3.160.0100.00716.30
7.3.10.0090.00616.68
7.3.00.0060.00616.68
7.2.330.0130.00716.58
7.2.320.0090.01416.79
7.2.310.0100.00716.73
7.2.300.0130.00716.73
7.2.290.0100.01416.32
7.2.130.0030.01016.82
7.2.120.0040.00416.76
7.2.110.0060.00616.84
7.2.100.0140.00016.91
7.2.90.0040.00716.66
7.2.80.0100.00616.87
7.2.70.0060.00916.04
7.2.60.0320.00716.19
7.2.50.0230.01015.88
7.2.40.0280.00615.94
7.2.30.0370.01016.03
7.2.20.0390.00515.81
7.2.10.0410.00615.81
7.2.00.0270.00416.98
7.1.250.0030.00715.85
7.1.200.0040.01115.88
7.1.170.0100.00313.80
7.1.160.0750.00313.78
7.1.150.0870.01313.62
7.1.140.0740.00613.75
7.1.130.0680.00413.97
7.1.120.0400.00713.96
7.1.110.0740.00913.88
7.1.100.0440.00815.91
7.1.90.0730.00713.60
7.1.80.0550.01213.77
7.1.70.0260.00315.28
7.1.60.0400.00725.23
7.1.50.0410.00833.04
7.1.40.0400.02031.78
7.1.30.0490.01331.50
7.1.20.0490.01131.69
7.1.10.0270.00313.46
7.1.00.0140.04218.05
7.0.300.0420.00313.52
7.0.290.0780.00713.41
7.0.270.0690.00613.63
7.0.260.0790.00013.68
7.0.250.0820.00413.56
7.0.240.0760.00313.46
7.0.230.0630.01713.67
7.0.220.0580.01113.56
7.0.210.0370.01713.43
7.0.200.0270.00515.01
7.0.190.0380.00613.50
7.0.180.0490.00713.64
7.0.170.0340.00813.59
7.0.160.0530.00613.70
7.0.150.0300.00713.70
7.0.140.0280.01013.53
7.0.130.0280.00913.64
7.0.120.0280.00813.63
7.0.110.0310.00313.50
7.0.100.0330.00313.52
7.0.90.0250.01013.38
7.0.80.2660.00713.79
7.0.70.0180.01313.56
7.0.60.0270.04016.74
7.0.50.0100.04115.81
7.0.40.0190.02316.80
7.0.30.0460.03317.02
7.0.20.0260.02716.86
7.0.10.0190.04016.87
7.0.00.0160.02016.78
5.6.300.0080.00813.89
5.6.290.0190.00014.20
5.6.280.0080.03117.59
5.6.270.0090.01014.28
5.6.260.0070.01114.37
5.6.250.0090.00914.27
5.6.240.0090.00914.33
5.6.230.0080.01614.32
5.6.220.0180.00014.09
5.6.210.0110.04517.39
5.6.200.0110.04216.38
5.6.190.0100.02817.54
5.6.180.0190.02617.43
5.6.170.0120.05317.32
5.6.160.0150.03717.47
5.6.150.0110.02116.11
5.6.140.0090.02016.23
5.6.130.0120.03716.15
5.6.120.0090.02617.40
5.6.110.0060.03817.61
5.6.100.0100.02117.66
5.6.90.0060.04517.50
5.6.80.0160.03917.41
5.6.70.0130.00514.18
5.6.60.0130.00514.01
5.6.50.0100.01014.20
5.6.40.0150.00314.15
5.6.30.0130.00414.03
5.6.20.0080.01014.23
5.6.10.0120.00614.07
5.6.00.0160.00314.38
5.5.380.0120.00310.87
5.5.370.0060.00911.03
5.5.360.0060.00811.34
5.5.350.0070.01915.75
5.5.340.0070.03114.50
5.5.330.0100.04115.53
5.5.320.0090.04015.84
5.5.310.0180.03615.75
5.5.300.0100.01814.58
5.5.290.0020.02614.43
5.5.280.0080.02215.90
5.5.270.0110.03115.76
5.5.260.0050.02815.78
5.5.250.0060.04515.74
5.5.240.0160.02515.60
5.5.230.0100.00311.08
5.5.220.0050.01011.10
5.5.210.0110.00611.03
5.5.200.0090.00511.17
5.5.190.0120.00011.14
5.5.180.0080.00810.91
5.5.160.0100.00311.18
5.5.150.0130.00011.12
5.5.140.0130.00011.14
5.5.130.0130.00011.12
5.5.120.0080.00510.92
5.5.110.0090.00411.05
5.5.100.0130.00011.14
5.5.90.0120.00011.04
5.5.80.0000.01411.16
5.5.70.0080.00510.79
5.5.60.0060.00611.11
5.5.50.0080.00510.82
5.5.40.0080.00511.07
5.5.30.0100.00311.14
5.5.20.0100.00310.70
5.5.10.0140.00011.01
5.5.00.0130.00310.89

preferences:
40.16 ms | 401 KiB | 5 Q