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.30.0140.00718.57
8.4.20.0270.00219.17
8.4.10.0240.00617.61
8.3.160.0050.00318.39
8.3.150.0220.00918.49
8.3.140.0180.00916.82
8.3.130.0180.00917.50
8.3.120.0160.01117.85
8.3.110.0200.00718.78
8.3.100.0160.01116.49
8.3.90.0200.00921.65
8.3.80.0210.00616.52
8.3.70.0220.00816.78
8.3.60.0220.00817.57
8.3.50.0280.01219.65
8.3.40.0170.00719.04
8.3.30.0190.00618.27
8.3.20.0160.00523.00
8.3.10.0140.00819.77
8.3.00.0150.00220.90
8.2.270.0250.00616.83
8.2.260.0230.00617.86
8.2.250.0180.00616.66
8.2.240.0200.00616.94
8.2.230.0160.00819.60
8.2.220.0220.00320.34
8.2.210.0190.00421.57
8.2.200.0150.00616.59
8.2.190.0220.00416.59
8.2.180.0130.01317.48
8.2.170.0180.01220.35
8.2.160.0140.01019.95
8.2.150.0200.00620.91
8.2.140.0160.01021.02
8.2.130.0250.00721.83
8.2.120.0220.00519.19
8.2.110.0170.00719.99
8.2.100.0240.00117.77
8.2.90.0150.00917.63
8.2.80.0190.00517.85
8.2.70.0190.00417.72
8.2.60.0140.00717.89
8.2.50.0180.00617.78
8.2.40.0100.01318.60
8.2.30.0140.00817.71
8.2.20.0190.00217.79
8.2.10.0150.00718.35
8.2.00.0100.01118.25
8.1.310.0180.00716.28
8.1.300.0120.01417.02
8.1.290.0140.01023.47
8.1.280.0250.00720.93
8.1.270.0100.01218.93
8.1.260.0190.00321.86
8.1.250.0120.00922.68
8.1.240.0180.00319.90
8.1.230.0180.00619.13
8.1.220.0170.00617.47
8.1.210.0150.00618.08
8.1.200.0150.00717.33
8.1.190.0160.00517.38
8.1.180.0150.00617.64
8.1.170.0170.00317.75
8.1.160.0180.00719.48
8.1.150.0160.00518.05
8.1.140.0150.00718.96
8.1.130.0160.00618.54
8.1.120.0170.00317.20
8.1.110.0120.00917.97
8.1.100.0140.00717.36
8.1.90.0150.00517.39
8.1.80.0140.00417.36
8.1.70.0130.00517.39
8.1.60.0090.00917.41
8.1.50.0110.00617.43
8.1.40.0120.00717.43
8.1.30.0080.00817.54
8.1.20.0150.00517.60
8.1.10.0130.00717.44
8.1.00.0190.00617.36
8.0.300.0190.00418.24
8.0.290.0150.00616.69
8.0.280.0160.00517.46
8.0.270.0140.00816.71
8.0.260.0200.00018.34
8.0.250.0150.00316.75
8.0.240.0190.00216.76
8.0.230.0210.00016.72
8.0.220.0130.00816.72
8.0.210.0110.00716.72
8.0.200.0130.00416.87
8.0.190.0130.00216.78
8.0.180.0090.00416.87
8.0.170.0150.00416.85
8.0.160.0120.00616.89
8.0.150.0120.00716.77
8.0.140.0110.00716.79
8.0.130.0100.00916.12
8.0.120.0160.00216.83
8.0.110.0130.00516.79
8.0.100.0140.00416.89
8.0.90.0120.00616.86
8.0.80.0140.00616.83
8.0.70.0120.00616.88
8.0.60.0140.00416.84
8.0.50.0150.00416.77
8.0.30.0140.00716.93
8.0.20.0120.00816.93
8.0.10.0120.00817.02
8.0.00.0100.00816.90
7.4.330.0200.00216.51
7.4.320.0170.00216.32
7.4.300.0110.00416.39
7.4.290.0130.00316.39
7.4.280.0130.00316.47
7.4.270.0140.00516.41
7.4.260.0140.00415.77
7.4.250.0110.00716.46
7.4.240.0090.00716.45
7.4.230.0150.00316.50
7.4.220.0100.00616.47
7.4.210.0120.00616.48
7.4.200.0150.00416.50
7.4.190.0150.00516.46
7.4.180.0140.00616.46
7.4.160.0110.00816.54
7.4.150.0150.00416.49
7.4.140.0110.00716.37
7.4.130.0130.00616.36
7.4.120.0120.00816.37
7.4.110.0140.00616.36
7.4.100.0150.00616.47
7.4.90.0100.00916.38
7.4.80.0120.00816.59
7.4.70.0120.00716.23
7.4.60.0110.00816.34
7.4.50.0100.00916.22
7.4.40.0120.00816.25
7.4.30.0120.00716.26
7.4.20.0110.00716.33
7.4.10.0110.00716.40
7.4.00.0100.00816.24
7.3.330.0170.00616.51
7.3.320.0120.00715.64
7.3.310.0130.00516.18
7.3.300.0150.00416.17
7.3.290.0130.00716.26
7.3.280.0150.00516.19
7.3.270.0140.00616.15
7.3.260.0110.00816.29
7.3.250.0120.00716.22
7.3.240.0120.00716.28
7.3.230.0120.00716.21
7.3.220.0140.00416.27
7.3.210.0100.00916.28
7.3.200.0130.00716.27
7.3.190.0130.00616.21
7.3.180.0100.01016.30
7.3.170.0130.00716.22
7.3.160.0120.00716.27
7.3.150.0100.00916.18
7.3.140.0130.00616.23
7.3.130.0110.00816.28
7.3.120.0110.00716.26
7.3.110.0110.00816.18
7.3.100.0130.00716.16
7.3.90.0120.00816.23
7.3.80.0120.00716.00
7.3.70.0130.00716.06
7.3.60.0110.00816.07
7.3.50.0120.00716.05
7.3.40.0090.00816.09
7.3.30.0120.00616.06
7.3.20.0120.00716.27
7.3.10.0130.00816.18
7.3.00.0160.00716.16
7.2.340.0180.01016.39
7.2.330.0160.01016.42
7.2.320.0180.00716.41
7.2.310.0180.00816.39
7.2.300.0190.00716.43
7.2.290.0180.00816.38
7.2.280.0190.00616.29
7.2.270.0190.00616.34
7.2.260.0160.00716.35
7.2.250.0160.00816.43
7.2.240.0180.00616.42
7.2.230.0180.00616.32
7.2.220.0150.00816.22
7.2.210.0150.01016.13
7.2.200.0160.01016.25
7.2.190.0160.00916.19
7.2.180.0160.00716.22
7.2.170.0140.00916.22
7.2.160.0160.00716.24
7.2.150.0180.00816.42
7.2.140.0210.00716.46
7.2.130.0180.00916.51
7.2.120.0180.00816.49
7.2.110.0180.00716.46
7.2.100.0200.00716.45
7.2.90.0160.01016.57
7.2.80.0150.00916.61
7.2.70.0160.00916.59
7.2.60.0170.00816.58
7.2.50.0200.00916.57
7.2.40.0230.00616.63
7.2.30.0180.00916.61
7.2.20.0190.00716.58
7.2.10.0170.00916.62
7.2.00.0170.00916.57
7.1.330.0180.00815.65
7.1.320.0170.00815.45
7.1.310.0190.00515.37
7.1.300.0180.00815.32
7.1.290.0170.00815.31
7.1.280.0150.00815.38
7.1.270.0200.00415.28
7.1.260.0180.00615.31
7.1.250.0170.00715.25
7.1.240.0180.00815.61
7.1.230.0160.00815.58
7.1.220.0190.00615.75
7.1.210.0170.00715.74
7.1.200.0170.00715.69
7.1.190.0180.00715.77
7.1.180.0160.00815.73
7.1.170.0220.00615.69
7.1.160.0170.00715.71
7.1.150.0180.00715.65
7.1.140.0150.00915.73
7.1.130.0170.00715.76
7.1.120.0170.00715.73
7.1.110.0200.00815.72
7.1.100.0190.00615.74
7.1.90.0160.00815.78
7.1.80.0170.00915.77
7.1.70.0220.00715.70
7.1.60.0180.00715.77
7.1.50.0180.00815.78
7.1.40.0170.00815.78
7.1.30.0190.00615.79
7.1.20.0140.01015.74
7.1.10.0170.00615.74
7.1.00.0210.00615.75

preferences:
28.88 ms | 403 KiB | 5 Q