3v4l.org

run code in 300+ PHP versions simultaneously
<?php set_error_handler(function ($level, $message, $file = '', $line = 0) { throw new ErrorException($message, 0, $level, $file, $line); }); try { $a = 1/0; } catch (Throwable $e) { echo "Come on, you cant't divide by zero!"; }

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.4.20.0080.00020.76
8.4.10.0000.00817.92
8.3.150.0160.00020.64
8.3.140.0000.00817.26
8.3.130.0060.00318.37
8.3.120.0000.00919.05
8.3.110.0030.01020.94
8.3.100.0040.00416.49
8.3.90.0040.00726.77
8.3.80.0030.00616.50
8.3.70.0070.00716.75
8.3.60.0110.00418.30
8.3.50.0240.01221.26
8.3.40.0110.00819.53
8.3.30.0070.00718.84
8.3.20.0110.00524.94
8.3.10.0020.00522.15
8.3.00.0080.00022.55
8.2.270.0160.00317.07
8.2.260.0120.00319.16
8.2.250.0050.00316.62
8.2.240.0060.00617.11
8.2.230.0040.00422.58
8.2.220.0150.00024.06
8.2.210.0080.00026.77
8.2.200.0030.00616.63
8.2.190.0090.00516.75
8.2.180.0070.00718.43
8.2.170.0070.01022.96
8.2.160.0070.00722.25
8.2.150.0030.00624.18
8.2.140.0040.00424.66
8.2.130.0100.00626.16
8.2.120.0050.00320.71
8.2.110.0000.01022.34
8.2.100.0090.00317.84
8.2.90.0050.00317.91
8.2.80.0040.00418.05
8.2.70.0060.00318.04
8.2.60.0000.00818.22
8.2.50.0090.00018.07
8.2.40.0000.00919.89
8.2.30.0000.00717.98
8.2.20.0020.00517.93
8.2.10.0000.00719.13
8.2.00.0000.00719.20
8.1.310.0000.00816.50
8.1.300.0030.00618.06
8.1.290.0000.00930.84
8.1.280.0130.00725.92
8.1.270.0000.00820.64
8.1.260.0050.00226.35
8.1.250.0040.00428.09
8.1.240.0090.00022.57
8.1.230.0080.00421.04
8.1.220.0070.00417.74
8.1.210.0080.00019.09
8.1.200.0030.00817.35
8.1.190.0030.00617.53
8.1.180.0040.00418.10
8.1.170.0050.00318.26
8.1.160.0000.00722.00
8.1.150.0000.00718.80
8.1.140.0000.00820.90
8.1.130.0030.00620.05
8.1.120.0070.00017.38
8.1.110.0050.01118.20
8.1.100.0050.00317.35
8.1.90.0040.00417.52
8.1.80.0050.00417.46
8.1.70.0040.00517.42
8.1.60.0020.00817.53
8.1.50.0040.00417.51
8.1.40.0030.00717.51
8.1.30.0020.00717.58
8.1.20.0100.00617.65
8.1.10.0120.00517.50
8.1.00.0120.00617.43
8.0.300.0080.00020.03
8.0.290.0000.00916.88
8.0.280.0000.00718.33
8.0.270.0030.00316.88
8.0.260.0060.00020.13
8.0.250.0060.00016.82
8.0.240.0070.00017.00
8.0.230.0060.00016.82
8.0.220.0030.00316.94
8.0.210.0020.00616.77
8.0.200.0040.00516.96
8.0.190.0060.00216.99
8.0.180.0060.00316.94
8.0.170.0050.00416.90
8.0.160.0050.00416.92
8.0.150.0080.00616.78
8.0.140.0110.00316.86
8.0.130.0080.00715.99
8.0.120.0120.00216.90
8.0.110.0100.00416.84
8.0.100.0100.00516.90
8.0.90.0090.00516.93
8.0.80.0090.00716.91
8.0.70.0090.00516.89
8.0.60.0110.00416.87
8.0.50.0100.00616.87
8.0.30.0120.00716.95
8.0.20.0100.00816.99
8.0.10.0100.00817.04
8.0.00.0090.00816.91
7.4.330.0050.00016.83
7.4.320.0060.00016.41
7.4.300.0050.00216.51
7.4.290.0040.00416.54
7.4.280.0050.00416.56
7.4.270.0120.00316.42
7.4.260.0120.00315.69
7.4.250.0080.00516.56
7.4.240.0060.00716.51
7.4.230.0130.00216.52
7.4.220.0070.00516.54
7.4.210.0090.00816.55
7.4.200.0110.00416.55
7.4.190.0120.00416.49
7.4.180.0090.00616.54
7.4.160.0100.00716.56
7.4.150.0120.00516.53
7.4.140.0080.00716.43
7.4.130.0120.00616.40
7.4.120.0100.00816.40
7.4.110.0130.00516.39
7.4.100.0140.00616.50
7.4.90.0090.00916.40
7.4.80.0100.00816.63
7.4.70.0100.00716.25
7.4.60.0090.00816.38
7.4.50.0090.00916.26
7.4.40.0100.00816.26
7.4.30.0110.00716.28
7.4.20.0100.00716.36
7.4.10.0110.00616.43
7.4.00.0090.00816.26
7.3.330.0150.00616.59
7.3.320.0100.00615.52
7.3.310.0100.00616.25
7.3.300.0130.00316.23
7.3.290.0100.00616.31
7.3.280.0110.00616.22
7.3.270.0110.00716.21
7.3.260.0090.00816.32
7.3.250.0110.00716.26
7.3.240.0110.00716.31
7.3.230.0110.00716.25
7.3.220.0130.00416.30
7.3.210.0080.00916.31
7.3.200.0130.00616.29
7.3.190.0110.00616.24
7.3.180.0080.00916.35
7.3.170.0110.00716.25
7.3.160.0110.00716.29
7.3.150.0080.00916.21
7.3.140.0110.00616.28
7.3.130.0090.00816.29
7.3.120.0100.00716.28
7.3.110.0090.00816.21
7.3.100.0120.00716.20
7.3.90.0110.00816.24
7.3.80.0110.00716.00
7.3.70.0120.00716.04
7.3.60.0100.00816.07
7.3.50.0110.00716.06
7.3.40.0080.00816.09
7.3.30.0110.00616.04
7.3.20.0110.00716.11
7.3.10.0120.00716.04
7.3.00.0140.00716.04
7.2.340.0170.00916.44
7.2.330.0160.00916.43
7.2.320.0170.00716.45
7.2.310.0170.00816.43
7.2.300.0180.00716.47
7.2.290.0180.00816.41
7.2.280.0180.00716.33
7.2.270.0190.00616.38
7.2.260.0160.00716.37
7.2.250.0160.00716.49
7.2.240.0190.00616.44
7.2.230.0190.00616.35
7.2.220.0160.00816.22
7.2.210.0140.01016.15
7.2.200.0160.01016.25
7.2.190.0150.00916.20
7.2.180.0150.00716.20
7.2.170.0130.01016.21
7.2.160.0160.00716.24
7.2.150.0180.00816.30
7.2.140.0200.00716.31
7.2.130.0170.00816.36
7.2.120.0170.00816.36
7.2.110.0180.00716.30
7.2.100.0190.00716.32
7.2.90.0160.01016.44
7.2.80.0140.00916.48
7.2.70.0160.00916.46
7.2.60.0170.00816.44
7.2.50.0200.00916.46
7.2.40.0230.00716.49
7.2.30.0170.00916.47
7.2.20.0180.00716.46
7.2.10.0160.00916.47
7.2.00.0160.00916.44
7.1.330.0170.00815.50
7.1.320.0170.00815.30
7.1.310.0190.00615.22
7.1.300.0180.00815.16
7.1.290.0160.00815.17
7.1.280.0140.00815.25
7.1.270.0190.00515.16
7.1.260.0180.00715.17
7.1.250.0160.00715.10
7.1.240.0170.00815.46
7.1.230.0160.00815.43
7.1.220.0180.00615.61
7.1.210.0160.00715.59
7.1.200.0160.00715.56
7.1.190.0180.00815.63
7.1.180.0150.00815.61
7.1.170.0200.00715.55
7.1.160.0160.00815.59
7.1.150.0180.00715.53
7.1.140.0140.01015.60
7.1.130.0170.00715.61
7.1.120.0160.00815.59
7.1.110.0200.00815.61
7.1.100.0180.00715.61
7.1.90.0160.00815.66
7.1.80.0170.00915.67
7.1.70.0210.00815.57
7.1.60.0170.00715.65
7.1.50.0180.00815.66
7.1.40.0160.00815.63
7.1.30.0180.00615.68
7.1.20.0130.01015.62
7.1.10.0170.00715.62
7.1.00.0210.00615.63
7.0.00.0160.01116.08
5.6.400.0040.00415.70
5.6.390.0110.01516.78

preferences:
31 ms | 403 KiB | 5 Q