3v4l.org

run code in 300+ PHP versions simultaneously
<?php /*E_ERROR E_CORE_ERROR E_CORE_WARNING E_COMPILE_ERROR E_COMPILE_WARNING*/ function exception_error_handler($errno, $errstr, $errfile, $errline) { var_dump($errstr); } set_error_handler("exception_error_handler", error_reporting()); function shutDownFunction() { $error = error_get_last(); if ($error['type'] == 1) { //do your stuff } } register_shutdown_function('shutdownFunction'); echo "\n"; echo "Hello World"; echo "\n\n"; //var_dump(error_get_last()); declare(foo='bar');

Abusive script

This script was stopped while abusing our resources

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)
7.4.10.0120.01816.46
7.4.00.0120.00815.74
7.3.130.0160.00716.13
7.3.120.0110.00915.54
7.3.110.0130.01416.21
7.3.100.0220.00716.33
7.3.90.0090.01816.56
7.3.80.0220.00616.26
7.3.70.0250.01016.08
7.3.60.0280.01416.23
7.3.50.0250.00916.23
7.3.40.0220.00516.27
7.3.30.0230.01216.16
7.3.20.0340.00616.24
7.3.10.0150.00616.29
7.3.00.0120.01116.13
7.2.260.0140.01116.47
7.2.250.0150.01916.41
7.2.240.0140.00716.53
7.2.230.0220.00816.65
7.2.220.0170.00916.55
7.2.210.0160.00716.55
7.2.200.0250.01216.64
7.2.190.0250.00716.60
7.2.180.0200.00816.60
7.2.170.0210.00616.38
7.2.160.0200.01316.59
7.2.150.0670.01216.30
7.2.140.0340.00916.29
7.2.130.0090.01516.72
7.2.120.0200.00816.60
7.2.110.0290.01116.46
7.2.100.0140.01316.57
7.2.90.0170.00514.11
7.2.80.0130.01014.12
7.2.70.0190.00614.29
7.2.60.0300.00814.28
7.2.50.0760.00414.18
7.2.40.0380.00916.49
7.2.30.0270.00916.57
7.2.20.0240.00816.65
7.2.10.0320.00816.63
7.2.00.0270.00916.68
7.1.330.2990.01015.46
7.1.320.0500.00615.52
7.1.310.0470.01915.48
7.1.300.0960.00915.53
7.1.290.0180.01415.39
7.1.280.0530.00315.44
7.1.270.0490.01015.51
7.1.260.0350.00615.54
7.1.250.0360.01015.47
7.1.240.0250.00315.41
7.1.230.0130.01315.45
7.1.220.0400.02015.48
7.1.210.0490.01115.41
7.1.200.0150.01315.29
7.1.190.0170.00711.65
7.1.180.0620.00811.65
7.1.170.0170.00811.65
7.1.160.0410.01115.55
7.1.150.0390.01915.50
7.1.140.0430.01815.51
7.1.130.0280.00412.27
7.1.120.0440.01615.44
7.1.110.0290.00411.65
7.1.100.0250.01215.56
7.1.90.0620.01215.50
7.1.80.0360.01115.33
7.1.70.0190.00716.10
7.1.60.0160.00816.26
7.1.50.0310.00514.23
7.1.40.0390.00615.63
7.1.30.0530.00815.45
7.1.20.0340.00011.65
7.1.10.0150.01315.52
7.1.00.0270.03817.06
7.0.330.0200.00715.13
7.0.320.0160.01215.09
7.0.310.0400.01415.22
7.0.300.0270.00914.84
7.0.290.0140.01415.11
7.0.280.0180.01315.23
7.0.270.0330.00315.08
7.0.260.0240.01215.09
7.0.250.0330.00615.21
7.0.240.0380.00415.21
7.0.230.0140.01815.05
7.0.220.0290.00611.65
7.0.210.0390.00711.65
7.0.200.0250.01215.94
7.0.190.0330.00715.24
7.0.180.0170.01014.93
7.0.170.1940.01415.26
7.0.160.0330.01315.11
7.0.150.0580.00311.65
7.0.140.0080.04016.86
7.0.130.0140.00511.65
7.0.120.0740.00411.65
7.0.110.0380.00411.65
7.0.100.0470.00611.65
7.0.90.0230.00815.11
7.0.80.0500.04617.59
7.0.70.0420.03117.47
7.0.60.0560.04317.62
7.0.50.0430.04017.70
7.0.40.0180.03317.44
7.0.30.0120.04415.85
7.0.20.0160.04817.49
7.0.10.0150.03817.51
7.0.00.0140.03617.51
5.6.400.0210.00715.64
5.6.390.0080.02616.01
5.6.380.0170.01016.11
5.6.370.0200.01116.08
5.6.360.0170.00815.58
5.6.350.0240.00615.69
5.6.340.0160.00711.65
5.6.330.0090.00011.65
5.6.320.0160.00211.65
5.6.310.0240.01416.02
5.6.300.0200.01116.04
5.6.290.0210.00316.00
5.6.280.0170.03618.51
5.6.270.0130.01015.96
5.6.260.0120.01715.98
5.6.250.0270.01015.87
5.6.240.0240.00315.99
5.6.230.0170.03118.10
5.6.220.0180.03618.16
5.6.210.0120.02518.14
5.6.200.0140.04116.34
5.6.190.0050.04816.34
5.6.180.0100.04318.44
5.6.170.0050.04318.53
5.6.160.0150.02618.70
5.6.150.0090.04216.34
5.6.140.0090.04518.51
5.6.130.0090.04518.45
5.6.120.0100.04616.38
5.6.110.0160.04418.46
5.6.100.0060.03818.41
5.6.90.0130.04018.41
5.6.80.0050.03118.07
5.6.70.0090.04618.17
5.6.60.0140.03118.09
5.6.50.0150.04518.03
5.6.40.0080.04818.04
5.6.30.0160.04217.96
5.6.20.0120.02518.15
5.6.10.0100.03717.91
5.6.00.0120.04218.13
5.5.380.0200.00711.65
5.5.370.0090.04918.25
5.5.360.0080.03218.19
5.5.350.0170.03718.22
5.5.340.0090.02918.28
5.5.330.0140.03818.38
5.5.320.0070.04718.34
5.5.310.0070.04618.32
5.5.300.0100.02918.35
5.5.290.0160.03818.29
5.5.280.0210.02618.32
5.5.270.0040.05518.28
5.5.260.0060.04318.38
5.5.250.0070.04518.32
5.5.240.0130.04018.01
5.5.230.0070.05118.02
5.5.220.0120.03617.98
5.5.210.0100.02518.06
5.5.200.0090.02918.04
5.5.190.0130.02617.99
5.5.180.0120.04017.92
5.5.170.0100.01315.89
5.5.160.0110.04517.94
5.5.150.0190.03818.00
5.5.140.0110.03917.97
5.5.130.0130.03717.94
5.5.120.0080.02717.89
5.5.110.0120.04217.98
5.5.100.0160.03717.88
5.5.90.0170.03517.71
5.5.80.0090.03717.94
5.5.70.0090.03317.90
5.5.60.0100.03317.95
5.5.50.0140.04017.92
5.5.40.0060.04717.89
5.5.30.0100.03817.87
5.5.20.0110.04217.91
5.5.10.0120.04317.78
5.5.00.0070.05017.89
5.4.450.0120.03916.18
5.4.440.0090.04415.99
5.4.430.0140.02815.87
5.4.420.0100.04416.05
5.4.410.0100.04015.97
5.4.400.0110.03615.86
5.4.390.0120.04115.71
5.4.380.0100.03715.75
5.4.370.0070.04115.85
5.4.360.0090.03915.86
5.4.350.0040.04415.72
5.4.340.0070.02815.82
5.4.330.0120.00412.59
5.4.320.0080.04615.97
5.4.310.0040.04215.77
5.4.300.0080.04115.89
5.4.290.0070.02715.80
5.4.280.0130.03515.79
5.4.270.0110.02315.85
5.4.260.0090.04315.83
5.4.250.0080.03715.98
5.4.240.0040.03615.93
5.4.230.0070.02615.95
5.4.220.0080.04215.87
5.4.210.0040.04215.91
5.4.200.0100.04015.84
5.4.190.0050.03915.79
5.4.180.0080.04415.86
5.4.170.0070.03015.81
5.4.160.0080.04015.77
5.4.150.0040.03315.81
5.4.140.0080.04014.52
5.4.130.0100.03814.58
5.4.120.0070.03614.50
5.4.110.0110.03114.51
5.4.100.0100.02314.51
5.4.90.0070.02014.57
5.4.80.0110.02514.57
5.4.70.0100.02514.58
5.4.60.0060.03314.62
5.4.50.0080.03814.45
5.4.40.0090.03514.61
5.4.30.0080.03514.61
5.4.20.0110.04014.59
5.4.10.0060.02514.62
5.4.00.0050.02614.23
5.3.290.0080.04313.92
5.3.280.0100.02513.87
5.3.270.0060.04413.78
5.3.260.0070.03713.88
5.3.250.0040.02613.81
5.3.240.0050.03913.70
5.3.230.0060.03113.77
5.3.220.0080.03813.80
5.3.210.0090.04013.85
5.3.200.0080.03313.80
5.3.190.0070.02213.86
5.3.180.0050.04013.82
5.3.170.0080.04313.97
5.3.160.0050.04613.84
5.3.150.0130.03513.85
5.3.140.0060.04313.79
5.3.130.0100.02413.76
5.3.120.0100.02613.79
5.3.110.0120.03713.85
5.3.100.0090.02613.62
5.3.90.0120.04013.59
5.3.80.0080.04013.55
5.3.70.0070.02213.55
5.3.60.0150.03313.51
5.3.50.0120.03713.52
5.3.40.0070.03813.57
5.3.30.0070.02413.63
5.3.20.0110.03313.52
5.3.10.0080.03613.46
5.3.00.0130.03213.43
5.2.170.0030.05314.15
5.2.160.0170.05014.15
5.2.150.0070.06014.15
5.2.140.0030.05314.15
5.2.130.0030.04014.15
5.2.120.0030.06014.15
5.2.110.0100.05714.15
5.2.100.0030.04714.15
5.2.90.0130.05014.15
5.2.80.0030.06714.15
5.2.70.0070.04314.15
5.2.60.0100.05314.15
5.2.50.0170.03314.15
5.2.40.0070.05314.15
5.2.30.0130.04714.15
5.2.20.0070.04714.15
5.2.10.0030.05314.15
5.2.00.0130.03314.15
5.1.60.0070.05014.15
5.1.50.0000.06014.15
5.1.40.0070.03314.15
5.1.30.0030.03714.15
5.1.20.0030.03014.15
5.1.10.0000.04014.15
5.1.00.0030.05714.15
5.0.50.0030.03714.15
5.0.40.0100.03714.15
5.0.30.0030.05714.15
5.0.20.0070.04014.15
5.0.10.0000.04714.15
5.0.00.0030.06314.15
4.4.90.0030.03014.15
4.4.80.0000.03314.15
4.4.70.0100.01714.15
4.4.60.0000.02314.15
4.4.50.0000.03714.15
4.4.40.0030.04014.15
4.4.30.0000.03714.15
4.4.20.0030.01714.15
4.4.10.0000.03314.15
4.4.00.0070.05014.15
4.3.110.0000.02714.15
4.3.100.0030.03014.15
4.3.90.0000.03714.15
4.3.80.0030.03314.15
4.3.70.0070.03014.15
4.3.60.0000.03714.15
4.3.50.0100.02714.15
4.3.40.0030.03714.15
4.3.30.0000.02314.15
4.3.20.0000.02714.15
4.3.10.0000.03014.15
4.3.00.0030.02014.15

preferences:
32.95 ms | 401 KiB | 5 Q