3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * When there's no other way than dying, at least do it nicely. * @param string $message The message to show. * @param string|null $file File where problem occured (leave empty to autodetect). * @param integer $line Line of code causing the issue. */ function kbm_fatal($message, $file='', $line=0){ if(!$file){ $trace = debug_backtrace(); echo '<pre>';print_r($trace);die; } die("<div style='font: bold 12px Consolas; color: #A00; background: #FFF; padding: 3px; margin: 1px;'>FATAL: $message [$file:$line]</div>"); } function test(){ kbm_fatal('cheese'); } test();

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.0120.00316.63
8.3.50.0080.01017.47
8.3.40.0120.00318.67
8.3.30.0070.00718.53
8.3.20.0080.00018.73
8.3.10.0040.00420.53
8.3.00.0080.00019.25
8.2.180.0110.00416.38
8.2.170.0110.01122.96
8.2.160.0040.01121.14
8.2.150.0000.00824.18
8.2.140.0040.00724.66
8.2.130.0030.00526.16
8.2.120.0070.00021.04
8.2.110.0100.00019.22
8.2.100.0080.00317.91
8.2.90.0000.00819.08
8.2.80.0000.00817.97
8.2.70.0110.00417.48
8.2.60.0060.00317.80
8.2.50.0050.00318.10
8.2.40.0060.00318.16
8.2.30.0030.00617.97
8.2.20.0000.00717.75
8.2.10.0070.00017.79
8.2.00.0070.00017.65
8.1.280.0110.00325.92
8.1.270.0070.00024.66
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00619.46
8.1.230.0070.00417.70
8.1.220.0000.00817.74
8.1.210.0060.00318.77
8.1.200.0090.00017.13
8.1.190.0040.00417.35
8.1.180.0080.00018.10
8.1.170.0000.00718.84
8.1.160.0080.00018.85
8.1.150.0040.00418.64
8.1.140.0040.00417.36
8.1.130.0000.00717.86
8.1.120.0030.00517.36
8.1.110.0000.00717.50
8.1.100.0040.00417.34
8.1.90.0040.00417.52
8.1.80.0000.00717.49
8.1.70.0030.00317.43
8.1.60.0040.00417.57
8.1.50.0040.00417.43
8.1.40.0030.00617.41
8.1.30.0080.00017.62
8.1.20.0050.00317.61
8.1.10.0000.00717.42
8.1.00.0030.00617.49
8.0.300.0070.00019.03
8.0.290.0070.00016.88
8.0.280.0060.00318.32
8.0.270.0000.00717.18
8.0.260.0040.00416.89
8.0.250.0050.00216.94
8.0.240.0050.00217.07
8.0.230.0070.00017.02
8.0.220.0000.00716.89
8.0.210.0030.00616.95
8.0.200.0070.00016.85
8.0.190.0040.00417.08
8.0.180.0070.00016.96
8.0.170.0090.00017.00
8.0.160.0000.00817.06
8.0.150.0030.00616.86
8.0.140.0050.00316.93
8.0.130.0060.00013.31
8.0.120.0060.00316.95
8.0.110.0040.00416.96
8.0.100.0030.00316.84
8.0.90.0030.00516.91
8.0.80.0090.00616.91
8.0.70.0000.00916.79
8.0.60.0040.00416.94
8.0.50.0000.00716.85
8.0.30.0150.00417.06
8.0.20.0120.00917.12
8.0.10.0000.00717.09
8.0.00.0070.01516.90
7.4.330.0000.00513.08
7.4.320.0030.00316.50
7.4.300.0000.00616.51
7.4.290.0050.00316.61
7.4.280.0040.00416.61
7.4.270.0030.00316.40
7.4.260.0050.00013.23
7.4.250.0080.00016.46
7.4.240.0070.00016.36
7.4.230.0000.00816.68
7.4.220.0070.01116.55
7.4.210.0090.00816.59
7.4.200.0040.00416.48
7.4.190.0000.00716.45
7.4.160.0070.01116.74
7.4.150.0060.01116.64
7.4.140.0050.01216.62
7.4.130.0100.00716.56
7.4.120.0090.00916.41
7.4.110.0150.00416.51
7.4.100.0110.00616.48
7.4.90.0150.00616.70
7.4.80.0130.00319.39
7.4.70.0130.00316.61
7.4.60.0110.00816.43
7.4.50.0060.00316.16
7.4.40.0000.01516.22
7.4.30.0110.00416.33
7.4.00.0110.00415.12
7.3.330.0030.00313.23
7.3.320.0050.00013.23
7.3.310.0050.00216.29
7.3.300.0000.00716.32
7.3.290.0110.00316.37
7.3.280.0070.01016.40
7.3.270.0200.00416.56
7.3.260.0160.00816.33
7.3.250.0120.00616.37
7.3.240.0050.01116.37
7.3.230.0090.00916.57
7.3.210.0040.01316.53
7.3.200.0090.01316.34
7.3.190.0090.01116.30
7.3.180.0060.00916.48
7.3.170.0060.00916.29
7.3.160.0140.00316.34
7.3.120.0070.01114.66
7.3.10.0120.00316.57
7.3.00.0050.00316.54
7.2.330.0080.00816.38
7.2.320.0040.01916.55
7.2.310.0150.00916.45
7.2.300.0100.01316.31
7.2.290.0100.01016.64
7.2.130.0100.00516.83
7.2.120.0060.00916.83
7.2.110.0090.00616.41
7.2.100.0090.00616.80
7.2.90.0000.01716.63
7.2.80.0040.00816.95
7.2.70.0100.00616.96
7.2.60.0030.01016.77
7.2.50.0070.00316.34
7.2.40.0060.00916.62
7.2.30.0060.00616.91
7.2.20.0110.00016.76
7.2.10.0070.00716.57
7.2.00.0000.01118.15
7.1.250.0040.01215.34
7.1.200.0060.00615.77
7.1.100.0100.00017.81
7.1.70.0000.01416.80
7.1.60.0040.01819.40
7.1.50.0110.00617.02
7.1.00.0070.07322.28
7.0.200.0850.00714.65
7.0.140.0030.07722.15
7.0.120.0070.07022.16
7.0.60.0170.07720.04
7.0.50.0030.05317.88
7.0.40.0070.08720.09
7.0.30.0470.06320.17
7.0.20.0130.05020.04
7.0.10.0070.04020.23
7.0.00.0100.08020.24
5.6.280.0230.07321.05
5.6.210.0070.07320.61
5.6.200.0100.06718.18
5.6.190.0070.06320.47
5.6.180.0100.04720.45
5.6.170.0370.06720.56
5.6.160.0000.05320.55
5.6.150.0070.08718.28
5.6.140.0200.06018.18
5.6.130.0100.04318.18
5.6.120.0070.08721.15
5.6.110.0130.03321.10
5.6.100.0070.08720.99
5.6.90.0130.05020.89
5.6.80.0070.07720.36
5.5.350.0000.03720.34
5.5.340.0200.07018.02
5.5.330.0030.06020.37
5.5.320.0130.07320.28
5.5.310.0270.04320.35
5.5.300.0100.08017.92
5.5.290.0070.06017.97
5.5.280.0070.07020.80
5.5.270.0070.04320.87
5.5.260.0030.09020.80
5.5.250.0030.04320.67
5.5.240.0230.06320.36
5.4.450.0030.04319.20
5.4.440.0070.08019.41
5.4.430.0070.05019.52
5.4.420.0070.05319.30
5.4.410.0070.03719.34
5.4.400.0070.04018.86
5.4.390.0000.04019.24
5.4.380.0000.04018.85
5.4.370.0130.03719.24
5.4.360.0000.04018.85
5.4.350.0130.03718.99
5.4.340.0000.04019.21
5.4.320.0000.04018.94
5.4.310.0030.03719.11
5.4.300.0030.03719.14
5.4.290.0030.03719.14
5.4.280.0000.04018.95
5.4.270.0030.03719.24
5.4.260.0100.03019.20
5.4.250.0000.04019.11
5.4.240.0000.04319.14
5.4.230.0030.03718.88
5.4.220.0070.04319.23
5.4.210.0030.03719.14
5.4.200.0000.04018.96
5.4.190.0000.04018.94
5.4.180.0030.04318.86
5.4.170.0000.04718.84
5.4.160.0000.04319.14
5.4.150.0070.03718.99
5.4.140.0000.04016.55
5.4.130.0100.04316.44
5.4.120.0030.07316.46
5.4.110.0130.05716.46
5.4.100.0070.07716.47
5.4.90.0070.05716.58
5.4.80.0230.06016.46
5.4.70.0100.03716.45
5.4.60.0130.05316.26
5.4.50.0200.05716.27
5.4.40.0130.03716.40
5.4.30.0200.06016.39
5.4.20.0030.03716.27
5.4.10.0070.07316.31
5.4.00.0000.08015.97
5.3.290.0030.03714.55
5.3.280.0070.03714.74
5.3.270.0000.06014.64
5.3.260.0030.05714.65
5.3.250.0000.05014.53
5.3.240.0070.03314.66
5.3.230.0070.06714.74
5.3.220.0070.08014.58
5.3.210.0030.05314.62
5.3.200.0000.04314.63
5.3.190.0070.03714.59
5.3.180.0130.04014.57
5.3.170.0100.05714.61
5.3.160.0030.05314.56
5.3.150.0030.04014.73
5.3.140.0030.06014.61
5.3.130.0100.06014.55
5.3.120.0100.07014.55
5.3.110.0030.07714.55
5.3.100.0170.06714.20
5.3.90.0030.07713.94
5.3.80.0070.04714.02
5.3.70.0070.07014.02
5.3.60.0070.06314.01
5.3.50.0070.04314.01
5.3.40.0000.04713.90
5.3.30.0070.06713.94
5.3.20.0100.05713.86
5.3.10.0070.06713.55
5.3.00.0070.04713.57
5.2.170.0030.03311.30
5.2.160.0030.03311.20
5.2.150.0000.03711.07
5.2.140.0070.04711.22
5.2.130.0100.03711.27
5.2.120.0070.06311.12
5.2.110.0030.04711.15
5.2.100.0030.06011.27
5.2.90.0000.04711.16
5.2.80.0000.04311.13
5.2.70.0070.06311.15
5.2.60.0030.05311.02
5.2.50.0070.03011.02
5.2.40.0030.03011.16
5.2.30.0030.06310.86
5.2.20.0000.06710.93
5.2.10.0070.06010.75
5.2.00.0030.06310.72
5.1.60.0030.04310.00
5.1.50.0030.03010.16
5.1.40.0030.05710.04
5.1.30.0070.04310.23
5.1.20.0100.05010.32
5.1.10.0070.05710.22
5.1.00.0130.04310.14
5.0.50.0030.0478.56
5.0.40.0000.0478.47
5.0.30.0070.0338.21
5.0.20.0000.0338.12
5.0.10.0000.0478.34
5.0.00.0000.0578.22
4.4.90.0030.0378.00
4.4.80.0070.0138.00
4.4.70.0030.0208.00
4.4.60.0030.0178.00
4.4.50.0070.0338.00
4.4.40.0070.0378.00
4.4.30.0030.0338.00
4.4.20.0070.0278.00
4.4.10.0070.0338.00
4.4.00.0000.0578.00
4.3.110.0030.0308.00
4.3.100.0100.0308.00
4.3.90.0000.0278.00
4.3.80.0030.0308.00
4.3.70.0000.0278.00
4.3.60.0030.0308.00
4.3.50.0030.0238.00
4.3.40.0000.0308.00
4.3.30.0000.0178.00
4.3.20.0000.0178.00
4.3.10.0030.0308.00
4.3.00.0000.0378.00

preferences:
43.57 ms | 401 KiB | 5 Q