3v4l.org

run code in 300+ PHP versions simultaneously
<?php function obh($b) { return 'obh'.$b; } function error($code, $message, $file = null, $line = 0) { ob_start('obh'); echo "convert error to exception<br>\n"; throw new \ErrorException($message, $code, null, $file, $line); } function shutdown() { echo "shutdown function called<br>\n"; } function ex($e) { echo "exception handler called<br>\n"; } set_exception_handler('ex'); set_error_handler('error'); register_shutdown_function('shutdown'); try { echo $crypto->compress(); } catch (\Exception $e) { echo "exception catched<br>\n"; } echo "after fatal error<br>\n";

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.0090.01218.31
8.3.50.0110.00621.98
8.3.40.0070.00718.83
8.3.30.0110.00319.22
8.3.20.0040.00420.16
8.3.10.0080.00022.10
8.3.00.0000.00822.48
8.2.180.0150.00316.88
8.2.170.0110.01122.96
8.2.160.0100.01022.08
8.2.150.0000.00824.18
8.2.140.0060.00324.66
8.2.130.0080.00026.16
8.2.120.0000.00819.36
8.2.110.0060.00322.03
8.2.100.0060.00619.64
8.2.90.0060.00319.09
8.2.80.0040.00419.78
8.2.70.0030.00617.75
8.2.60.0040.00417.93
8.2.50.0000.00818.07
8.2.40.0030.00518.22
8.2.30.0000.00918.02
8.2.20.0080.00017.59
8.2.10.0000.00817.74
8.2.00.0020.00517.65
8.1.280.0180.00325.92
8.1.270.0030.00522.11
8.1.260.0100.00726.35
8.1.250.0080.00028.09
8.1.240.0050.00523.96
8.1.230.0040.00819.07
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0000.01017.35
8.1.190.0050.00317.53
8.1.180.0030.00618.10
8.1.170.0040.00418.46
8.1.160.0000.00722.06
8.1.150.0040.00418.65
8.1.140.0040.00417.50
8.1.130.0000.00717.75
8.1.120.0050.00217.37
8.1.110.0070.00017.42
8.1.100.0030.00517.43
8.1.90.0040.00317.41
8.1.80.0040.00417.48
8.1.70.0080.00017.42
8.1.60.0040.00417.58
8.1.50.0040.00417.56
8.1.40.0070.00017.42
8.1.30.0060.00317.62
8.1.20.0040.00417.55
8.1.10.0040.00417.50
8.1.00.0040.00417.40
8.0.300.0030.00518.77
8.0.290.0030.00617.18
8.0.280.0040.00418.46
8.0.270.0070.00017.27
8.0.260.0030.00516.89
8.0.250.0000.00716.92
8.0.240.0070.00017.07
8.0.230.0070.00017.05
8.0.220.0000.00716.92
8.0.210.0030.00316.91
8.0.200.0070.00016.98
8.0.190.0040.00417.03
8.0.180.0070.00017.00
8.0.170.0040.00416.93
8.0.160.0050.00216.87
8.0.150.0040.00416.82
8.0.140.0040.00416.91
8.0.130.0030.00313.35
8.0.120.0030.00516.89
8.0.110.0000.00717.00
8.0.100.0070.00016.80
8.0.90.0040.00416.82
8.0.80.0090.00617.00
8.0.70.0050.00216.97
8.0.60.0070.00016.95
8.0.50.0040.00416.76
8.0.30.0120.01417.12
8.0.20.0120.00717.40
8.0.10.0080.00017.09
8.0.00.0110.00816.86
7.4.330.0060.00015.00
7.4.320.0000.00716.56
7.4.300.0030.00316.43
7.4.290.0060.00016.46
7.4.280.0000.01016.64
7.4.270.0000.00716.50
7.4.260.0000.00716.50
7.4.250.0040.00416.57
7.4.240.0070.00016.57
7.4.230.0070.00016.63
7.4.220.0130.00316.54
7.4.210.0060.00816.67
7.4.200.0040.00416.62
7.4.190.0000.00816.38
7.4.160.0080.00816.54
7.4.150.0040.01717.40
7.4.140.0050.01517.86
7.4.130.0090.00916.51
7.4.120.0130.00816.60
7.4.110.0040.01416.61
7.4.100.0030.01516.54
7.4.90.0130.00316.73
7.4.80.0090.00819.39
7.4.70.0030.01316.59
7.4.60.0060.01016.64
7.4.50.0000.00816.35
7.4.40.0060.00922.77
7.4.30.0060.01216.47
7.4.00.0060.00914.97
7.3.330.0030.00313.25
7.3.320.0020.00213.38
7.3.310.0030.00316.23
7.3.300.0000.00716.34
7.3.290.0070.00716.39
7.3.280.0110.00516.35
7.3.270.0070.01717.40
7.3.260.0070.01016.54
7.3.250.0160.00116.50
7.3.240.0070.01016.39
7.3.230.0060.01216.56
7.3.210.0070.01016.44
7.3.200.0080.01119.39
7.3.190.0120.00616.41
7.3.180.0120.00316.31
7.3.170.0120.00916.46
7.3.160.0110.00616.39
7.3.120.0090.00814.93
7.3.110.0080.00914.96
7.3.100.0080.00314.86
7.3.90.0110.00314.91
7.3.80.0030.01114.94
7.3.70.0080.00514.83
7.3.60.0110.00614.82
7.3.50.0070.00414.63
7.3.40.0020.01214.81
7.3.30.0050.00814.88
7.3.20.0070.00716.62
7.3.10.0050.00916.61
7.3.00.0060.00816.72
7.2.330.0030.01716.75
7.2.320.0100.01416.66
7.2.310.0060.01616.73
7.2.300.0070.01016.23
7.2.290.0110.00516.52
7.2.250.0160.00314.91
7.2.240.0100.01015.00
7.2.230.0070.01014.96
7.2.220.0030.00915.04
7.2.210.0050.00615.07
7.2.200.0050.00714.88
7.2.190.0070.00614.87
7.2.180.0050.01115.05
7.2.170.0050.00915.00
7.2.160.0030.01015.07
7.2.150.0070.01016.85
7.2.140.0030.01316.99
7.2.130.0040.00816.89
7.2.120.0060.00316.90
7.2.110.0060.00316.66
7.2.100.0000.00916.91
7.2.90.0090.00017.00
7.2.80.0090.00617.02
7.2.70.0030.01217.02
7.2.60.0140.00816.86
7.2.50.0140.00316.99
7.2.40.0060.00616.99
7.2.30.0070.01116.90
7.2.20.0080.00816.95
7.2.10.0090.00416.66
7.2.00.0060.00316.98
7.1.330.0090.00515.80
7.1.320.0050.01015.83
7.1.310.0020.01315.67
7.1.300.0040.00815.71
7.1.290.0020.01215.67
7.1.280.0040.00815.68
7.1.270.0050.01015.78
7.1.260.0060.00515.59
7.1.250.0100.00315.55
7.1.200.0030.00715.40
7.1.70.0120.00317.12
7.1.60.0030.02019.82
7.1.50.0180.00016.98
7.1.00.0030.07722.31
7.0.200.0040.01116.92
7.0.140.0030.07722.00
7.0.100.0300.07719.96
7.0.90.0330.06719.91
7.0.80.0230.04719.94
7.0.70.0030.04019.96
7.0.60.0130.08319.92
7.0.50.0070.03720.35
7.0.40.0030.05320.17
7.0.30.0000.05020.00
7.0.20.0030.07020.18
7.0.10.0030.04320.12
7.0.00.0130.08320.03
5.6.280.0030.07320.86
5.6.250.0130.07320.49
5.6.240.0170.04020.61
5.6.230.0100.07020.63
5.6.220.0100.03720.58
5.6.210.0100.07020.65
5.6.200.0030.04721.02
5.6.190.0100.07321.00
5.6.180.0070.03721.04
5.6.170.0070.09021.08
5.6.160.0070.04020.95
5.6.150.0030.08321.02
5.6.140.0000.05721.00
5.6.130.0070.06720.95
5.6.120.0130.07020.93
5.6.110.0100.08021.10
5.6.100.0030.06321.02
5.6.90.0100.07020.94
5.6.80.0130.07320.35
5.6.70.0100.06320.52
5.6.60.0070.03320.42
5.6.50.0030.05020.43
5.6.40.0130.07320.44
5.6.30.0070.06020.42
5.6.20.0030.06320.39
5.6.10.0130.05720.43
5.6.00.0030.08020.39
5.5.380.0130.07020.43
5.5.370.0100.07720.50
5.5.360.0000.06020.44
5.5.350.0100.06320.40
5.5.340.0100.08020.78
5.5.330.0100.08020.88
5.5.320.0100.07720.75
5.5.310.0000.05720.92
5.5.300.0030.08720.89
5.5.290.0000.08320.88
5.5.280.0030.06020.84
5.5.270.0030.06020.74
5.5.260.0000.04720.90
5.5.250.0070.07320.61
5.5.240.0070.07720.12
5.5.230.0070.05720.30
5.5.220.0030.09020.23
5.5.210.0130.06320.21
5.5.200.0070.07020.16
5.5.190.0100.06720.28
5.5.180.0130.07020.19
5.5.160.0170.03020.28
5.5.150.0100.04020.11
5.5.140.0130.06720.27
5.5.130.0200.05320.18
5.5.120.0000.05320.19
5.5.110.0130.07320.27
5.5.100.0100.04319.96
5.5.90.0130.07320.07
5.5.80.0070.07019.96
5.5.70.0000.04320.12
5.5.60.0130.07319.98
5.5.50.0170.05320.04
5.5.40.0100.07320.07
5.5.30.0030.04020.17
5.5.20.0000.04320.08
5.5.10.0030.04720.11
5.5.00.0070.07319.96
5.4.450.0030.08319.34
5.4.440.0100.07719.41
5.4.430.0100.07719.37
5.4.420.0100.03319.25
5.4.410.0130.07019.38
5.4.400.0100.05319.19
5.4.390.0030.06718.96
5.4.380.0130.06719.05
5.4.370.0070.05719.12
5.4.360.0100.07719.04
5.4.350.0070.03719.09
5.4.340.0130.06019.25
5.4.320.0070.07318.91
5.4.310.0070.04719.13
5.4.300.0170.05719.04
5.4.290.0030.07018.94
5.4.280.0170.06019.12
5.4.270.0100.05018.90
5.4.260.0030.05319.09
5.4.250.0030.05719.04
5.4.240.0070.07018.89
5.4.230.0070.04319.12
5.4.220.0100.06719.16
5.4.210.0200.05319.08
5.4.200.0070.04719.12
5.4.190.0030.05719.05
5.4.180.0000.04018.89
5.4.170.0100.07019.11
5.4.160.0130.06318.88
5.4.150.0070.08319.16
5.4.140.0030.04716.46
5.4.130.0130.07016.48
5.4.120.0170.05716.53
5.4.110.0030.07016.56
5.4.100.0030.04716.38
5.4.90.0070.03716.38
5.4.80.0070.04716.51
5.4.70.0070.07316.43
5.4.60.0100.07316.26
5.4.50.0100.04716.32
5.4.40.0030.05016.41
5.4.30.0030.05016.41
5.4.20.0100.07016.23
5.4.10.0100.07316.36
5.4.00.0130.06315.90
5.3.290.0100.07014.63
5.3.280.0130.07014.61
5.3.270.0070.06314.71
5.3.260.0130.06314.58
5.3.250.0070.03714.66
5.3.240.0100.07714.55
5.3.230.0070.07714.73
5.3.220.0100.04014.68
5.3.210.0200.06014.57
5.3.200.0070.06314.64
5.3.190.0070.07714.66
5.3.180.0000.05314.71
5.3.170.0070.06714.52
5.3.160.0070.07314.63
5.3.150.0070.03714.63
5.3.140.0170.06714.55
5.3.130.0100.06314.60
5.3.120.0030.04014.52
5.3.110.0130.06714.66
5.3.100.0100.06314.02
5.3.90.0070.07014.03
5.3.80.0100.06014.08
5.3.70.0030.07314.02
5.3.60.0070.06314.05
5.3.50.0070.05713.89
5.3.40.0030.04314.02
5.3.30.0070.04713.85
5.3.20.0070.06313.77
5.3.10.0130.07013.59
5.3.00.0030.04713.65
5.2.170.0100.03711.25
5.2.160.0070.05311.21
5.2.150.0000.05711.18
5.2.140.0070.03711.06
5.2.130.0070.05011.11
5.2.120.0070.06011.01
5.2.110.0030.06311.22
5.2.100.0030.06311.23
5.2.90.0030.06311.11
5.2.80.0070.05011.15
5.2.70.0100.05311.21
5.2.60.0100.05011.13
5.2.50.0070.05710.94
5.2.40.0070.04011.11
5.2.30.0070.06010.97
5.2.20.0100.02310.84
5.2.10.0030.03710.96
5.2.00.0130.05710.88
5.1.60.0000.04010.10
5.1.50.0100.04010.00
5.1.40.0100.0279.82
5.1.30.0070.05010.25
5.1.20.0030.05710.46
5.1.10.0070.03710.14
5.1.00.0100.05310.15
5.0.50.0070.0378.70
5.0.40.0030.0438.70
5.0.30.0000.0538.70
5.0.20.0070.0408.70
5.0.10.0030.0438.70
5.0.00.0000.0508.70
4.4.90.0100.0178.70
4.4.80.0030.0178.70
4.4.70.0030.0338.70
4.4.60.0070.0308.70
4.4.50.0030.0178.70
4.4.40.0000.0538.70
4.4.30.0100.0308.70
4.4.20.0000.0338.70
4.4.10.0030.0338.70
4.4.00.0030.0308.70
4.3.110.0070.0308.70
4.3.100.0100.0108.70
4.3.90.0030.0308.70
4.3.80.0030.0408.70
4.3.70.0030.0138.70
4.3.60.0030.0178.70
4.3.50.0030.0338.70
4.3.40.0030.0378.70
4.3.30.0000.0378.70
4.3.20.0000.0208.70
4.3.10.0000.0178.70
4.3.00.0000.0208.70

preferences:
59.85 ms | 401 KiB | 5 Q