3v4l.org

run code in 300+ PHP versions simultaneously
<?php function my_error_handler($errno, $message) { throw new ErrorException($message); } try { echo 1/0; } catch(ErrorException $e){ echo "got $e"; }

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.0150.00618.31
8.3.50.0100.00316.46
8.3.40.0090.00618.76
8.3.30.0150.00018.76
8.3.20.0040.00419.15
8.3.10.0030.00520.59
8.3.00.0040.00419.68
8.2.180.0160.00016.75
8.2.170.0070.00722.96
8.2.160.0120.00319.09
8.2.150.0070.00024.18
8.2.140.0050.00324.66
8.2.130.0080.00019.58
8.2.120.0040.00426.35
8.2.110.0000.01122.11
8.2.100.0090.00317.72
8.2.90.0060.00317.75
8.2.80.0090.00018.77
8.2.70.0000.00817.79
8.2.60.0040.00417.80
8.2.50.0000.00818.10
8.2.40.0000.00821.03
8.2.30.0040.00419.44
8.2.20.0000.00818.05
8.2.10.0030.00517.88
8.2.00.0000.00719.43
8.1.280.0060.00925.92
8.1.270.0000.00923.97
8.1.260.0040.00426.35
8.1.250.0070.00328.09
8.1.240.0030.00623.84
8.1.230.0100.00021.04
8.1.220.0040.00418.58
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0080.00017.23
8.1.180.0040.00418.10
8.1.170.0000.00818.47
8.1.160.0000.00718.70
8.1.150.0040.00418.83
8.1.140.0040.00417.69
8.1.130.0030.00318.87
8.1.120.0040.00417.30
8.1.110.0000.00717.42
8.1.100.0030.00717.29
8.1.90.0000.00817.32
8.1.80.0080.00317.29
8.1.70.0070.00317.29
8.1.60.0040.00417.41
8.1.50.0030.00617.38
8.1.40.0000.00817.48
8.1.30.0000.00817.63
8.1.20.0040.00417.49
8.1.10.0000.00717.61
8.1.00.0040.00417.46
8.0.300.0040.00418.77
8.0.290.0060.00316.73
8.0.280.0050.00318.38
8.0.270.0030.00417.07
8.0.260.0070.00019.03
8.0.250.0000.00716.98
8.0.240.0030.00316.92
8.0.230.0000.00716.88
8.0.220.0040.00416.91
8.0.210.0080.00016.82
8.0.200.0030.00316.79
8.0.190.0000.00716.96
8.0.180.0000.00716.88
8.0.170.0000.00916.89
8.0.160.0030.00316.96
8.0.150.0000.00716.82
8.0.140.0030.00516.90
8.0.130.0030.00313.31
8.0.120.0030.00516.75
8.0.110.0020.00516.86
8.0.100.0000.00816.76
8.0.90.0070.00016.77
8.0.80.0120.00816.82
8.0.70.0040.00416.89
8.0.60.0040.00416.76
8.0.50.0030.00516.88
8.0.30.0130.00617.11
8.0.20.0110.00917.40
8.0.10.0000.00716.89
8.0.00.0110.00616.77
7.4.330.0000.00515.55
7.4.320.0000.00716.52
7.4.300.0030.00316.28
7.4.290.0070.00016.46
7.4.280.0030.00516.46
7.4.270.0000.00716.35
7.4.260.0040.00416.45
7.4.250.0050.00316.36
7.4.240.0080.00016.37
7.4.230.0030.00316.26
7.4.220.0030.00516.53
7.4.210.0090.00616.45
7.4.200.0030.00316.54
7.4.160.0080.00816.48
7.4.140.0120.00617.86
7.4.130.0090.00916.34
7.4.120.0080.00916.38
7.4.110.0040.01516.47
7.4.100.0110.01116.27
7.4.90.0060.01216.35
7.4.80.0060.01219.39
7.4.70.0040.01116.44
7.4.60.0150.00716.32
7.4.50.0040.00816.52
7.4.40.0070.01016.32
7.4.00.0070.00714.92
7.3.330.0050.00013.26
7.3.320.0000.00613.17
7.3.310.0000.00716.14
7.3.300.0030.00316.29
7.3.290.0070.00016.10
7.3.280.0090.00716.29
7.3.260.0080.01116.33
7.3.240.0090.01116.38
7.3.230.0080.00816.44
7.3.210.0060.01216.45
7.3.200.0090.00916.53
7.3.190.0070.01316.39
7.3.180.0160.00016.18
7.3.170.0120.00316.46
7.3.160.0090.00616.27
7.2.330.0180.00616.44
7.2.320.0030.01416.64
7.2.310.0100.01316.53
7.2.300.0100.01016.55
7.2.290.0190.00016.54
7.2.60.2090.00614.93
7.2.50.2120.01114.79
7.2.40.2080.01015.17
7.2.30.1570.00715.41
7.2.20.1700.00815.24
7.2.10.1840.00815.16
7.2.00.1750.00915.51
7.1.200.0030.00815.61
7.1.170.2310.00813.62
7.1.160.2360.01116.86
7.1.150.1360.01016.51
7.1.140.1990.01016.69
7.1.130.1330.01216.68
7.1.120.2110.00816.96
7.1.110.1470.00816.20
7.1.100.1700.00916.14
7.1.90.2010.01215.80
7.1.80.2220.00916.14
7.1.70.2050.00615.18
7.1.60.2460.01533.13
7.1.50.2280.01332.85
7.1.40.2040.01532.44
7.1.30.1500.00932.41
7.1.20.1680.00832.55
7.1.10.1620.01014.88
7.1.00.1630.01114.95

preferences:
42.38 ms | 401 KiB | 5 Q