3v4l.org

run code in 300+ PHP versions simultaneously
<?php // First, some magic! function custom_error_handler($level, $message, $file = '', $line = 0, $context = array()) { //throw new Exception($message, 0, $level, $file, $line); } set_error_handler('custom_error_handler'); error_reporting(0); // Yeah, not the best solution class SomeClass {} function test(SomeClass $instance) { echo 'wtf: '.$instance; } // NOTE: E_RECOVERABLE_ERROR (4096) occurs here test(1);

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.00618.53
8.3.50.0110.00921.22
8.3.40.0140.00018.69
8.3.30.0140.00019.08
8.3.20.0110.00420.33
8.3.10.0050.00223.48
8.3.00.0040.00419.38
8.2.180.0180.00018.16
8.2.170.0140.00018.96
8.2.160.0150.00322.96
8.2.150.0000.00725.66
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00421.99
8.2.110.0120.00622.15
8.2.100.0110.00417.75
8.2.90.0030.00619.05
8.2.80.0040.00417.97
8.2.70.0030.00617.63
8.2.60.0060.00317.80
8.2.50.0000.00818.07
8.2.40.0080.00019.82
8.2.30.0000.00717.87
8.2.20.0080.00017.68
8.2.10.0040.00417.95
8.2.00.0030.00517.55
8.1.280.0090.00925.92
8.1.270.0040.00423.79
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0030.00617.36
8.1.230.0080.00417.42
8.1.220.0000.00717.74
8.1.210.0000.00918.77
8.1.200.0000.00817.23
8.1.190.0000.00817.23
8.1.180.0040.00418.10
8.1.170.0090.00018.51
8.1.160.0070.00021.91
8.1.150.0030.00318.68
8.1.140.0040.00417.44
8.1.130.0030.00317.76
8.1.120.0030.00417.34
8.1.110.0030.00517.34
8.1.100.0040.00417.33
8.1.90.0050.00217.30
8.1.80.0000.00717.32
8.1.70.0070.00017.18
8.1.60.0040.00417.53
8.1.50.0030.00617.39
8.1.40.0080.00017.50
8.1.30.0060.00317.57
8.1.20.0030.00617.52
8.1.10.0080.00017.45
8.1.00.0040.00417.46
8.0.300.0050.00218.77
8.0.290.0070.00016.75
8.0.280.0070.00018.37
8.0.270.0030.00517.20
8.0.260.0070.00017.07
8.0.250.0030.00316.93
8.0.240.0000.00816.85
8.0.230.0030.00516.90
8.0.220.0030.00316.80
8.0.210.0040.00416.95
8.0.200.0030.00316.97
8.0.190.0060.00316.84
8.0.180.0070.00016.90
8.0.170.0050.00316.91
8.0.160.0000.00716.81
8.0.150.0070.00016.84
8.0.140.0000.00716.82
8.0.130.0000.00613.38
8.0.120.0000.00716.84
8.0.110.0040.00416.75
8.0.100.0000.00717.00
8.0.90.0000.00716.71
8.0.80.0090.00616.79
8.0.70.0000.00716.85
8.0.60.0000.00716.75
8.0.50.0000.00816.88
8.0.30.0140.01016.95
8.0.20.0150.00617.40
8.0.10.0030.00616.81
8.0.00.0120.00616.66
7.4.330.0030.00315.02
7.4.320.0030.00316.37
7.4.300.0030.00316.36
7.4.290.0030.00316.55
7.4.280.0050.00216.48
7.4.270.0040.00416.55
7.4.260.0000.00816.52
7.4.250.0040.00416.42
7.4.240.0070.00016.41
7.4.230.0070.00016.33
7.4.220.0030.01416.61
7.4.210.0100.00316.31
7.4.200.0000.00716.64
7.4.160.0040.01716.52
7.4.150.0150.00817.40
7.4.140.0100.01517.86
7.4.130.0080.01116.33
7.4.120.0090.00816.42
7.4.110.0080.01316.41
7.4.100.0100.00616.25
7.4.90.0090.00916.45
7.4.80.0040.01619.39
7.4.70.0120.00416.45
7.4.60.0000.01716.54
7.4.50.0050.00316.50
7.4.40.0180.00316.23
7.4.30.0070.01316.34
7.4.00.0030.01514.70
7.3.330.0000.00613.09
7.3.320.0000.00513.27
7.3.310.0000.00716.33
7.3.300.0050.00216.17
7.3.290.0050.01416.30
7.3.280.0110.00916.25
7.3.270.0180.00017.40
7.3.260.0130.01016.34
7.3.250.0100.00816.31
7.3.240.0070.01016.34
7.3.230.0060.01316.39
7.3.210.0120.00616.60
7.3.200.0060.01016.31
7.3.190.0040.01216.41
7.3.180.0060.00916.33
7.3.170.0100.01016.34
7.3.160.0100.00516.56
7.3.120.0160.00014.75
7.3.110.0120.00614.91
7.3.100.0090.00614.58
7.3.90.0000.01014.72
7.3.80.0070.01114.96
7.3.70.0000.00914.73
7.3.60.0070.00714.92
7.3.50.0060.00614.82
7.3.40.0040.00414.87
7.3.30.0000.01314.82
7.3.20.0090.00616.71
7.3.10.0030.00716.63
7.3.00.0060.00916.49
7.2.330.0130.00316.49
7.2.320.0110.00716.51
7.2.310.0100.00616.50
7.2.300.0130.01016.59
7.2.290.0070.01016.37
7.2.250.0120.00615.04
7.2.240.0070.01414.83
7.2.230.0070.01015.06
7.2.220.0090.00614.75
7.2.210.0000.01014.61
7.2.200.0030.01314.75
7.2.190.0040.01114.82
7.2.180.0110.00414.70
7.2.170.0110.00314.87
7.2.60.0060.01016.82
7.2.00.0170.01119.23
7.1.330.0030.01115.77
7.1.320.0000.01215.77
7.1.310.0130.00315.80
7.1.300.0040.01215.45
7.1.290.0030.01015.64
7.1.280.0040.01115.52
7.1.270.0070.01015.70
7.1.260.0000.01415.79
7.1.200.0070.00715.81
7.1.100.0030.01018.01
7.1.70.0120.00417.03
7.1.60.0120.01219.11
7.1.50.0070.01416.89
7.1.00.0030.07722.31
7.0.200.0030.00616.49
7.0.140.0030.06722.00
7.0.60.0100.07320.04
7.0.50.0070.04017.84
7.0.40.0100.07020.13
7.0.30.0230.08720.30
7.0.20.0400.06320.26
7.0.10.0300.07720.16
7.0.00.0100.08320.22
5.6.280.0100.06721.11
5.6.210.0100.03320.61
5.6.200.0070.03718.28
5.6.190.0030.06020.60
5.6.180.0370.06720.77
5.6.170.0100.05020.48
5.6.160.0030.08320.50
5.6.150.0030.08718.27
5.6.140.0070.04718.15
5.6.130.0000.04318.14
5.6.120.0130.08020.98
5.6.110.0130.08721.12
5.6.100.0100.07721.09
5.6.90.0070.06720.95
5.6.80.0100.07320.54
5.6.70.4400.03720.58
5.5.350.0070.04020.30
5.5.340.0130.07017.95
5.5.330.0130.05720.40
5.5.320.0230.04320.35
5.5.310.0370.07020.35
5.5.300.0070.08017.98
5.5.290.0070.04717.98
5.5.280.0000.09320.77
5.5.270.0030.06320.73
5.5.260.0070.09320.85
5.5.250.0070.04020.71
5.5.240.0330.07320.18
5.4.450.0100.06319.34
5.4.440.0230.06319.63
5.4.430.0130.05719.46
5.4.420.0670.00019.42
5.4.410.0630.00019.36
5.4.400.0630.00019.09
5.4.390.0630.00019.16
5.4.380.0630.00019.09
5.4.370.0600.00019.13
5.4.360.0600.00019.09
5.4.350.0630.00019.09
5.4.340.0050.03512.02
5.4.320.0060.03512.50
5.4.310.0040.03912.50
5.4.300.0070.03512.50
5.4.290.0060.04512.50
5.4.280.0070.03312.40
5.4.270.0070.03512.40
5.4.260.0050.04112.40
5.4.250.0040.03812.40
5.4.240.0060.03912.39
5.4.230.0080.03912.39
5.4.220.0060.04612.39
5.4.210.0100.03512.39
5.4.200.0050.03812.39
5.4.190.0060.03512.39
5.4.180.0060.03512.38
5.4.170.0080.03912.39
5.4.160.0070.03512.39
5.4.150.0050.03512.39
5.4.140.0080.04312.07
5.4.130.0070.03912.06
5.4.120.0080.03812.02
5.4.110.0060.03912.01
5.4.100.0060.03312.01
5.4.90.0060.04312.02
5.4.80.0070.03612.01
5.4.70.0070.03712.01
5.4.60.0070.03712.01
5.4.50.0070.03312.01
5.4.40.0040.03512.00
5.4.30.0040.03611.99
5.4.20.0060.03511.99
5.4.10.0030.03611.99
5.4.00.0040.03711.48
5.3.290.0080.03512.80
5.3.280.0090.04012.71
5.3.270.0050.04112.72
5.3.260.0080.03512.72
5.3.250.0080.04012.72
5.3.240.0060.03512.72
5.3.230.0050.03712.71
5.3.220.0020.04012.68
5.3.210.0070.03812.68
5.3.200.0080.04212.68
5.3.190.0090.03512.68
5.3.180.0070.03612.67
5.3.170.0050.04012.67
5.3.160.0110.04312.67
5.3.150.0100.03612.68
5.3.140.0030.04412.66
5.3.130.0060.03912.66
5.3.120.0070.03812.65
5.3.110.0060.03912.66
5.3.100.0050.03812.12
5.3.90.0100.03312.11
5.3.80.0050.04912.10
5.3.70.0050.03712.10
5.3.60.0030.03812.08
5.3.50.0050.03612.03
5.3.40.0090.03912.03
5.3.30.0050.04011.98
5.3.20.0090.04311.77
5.3.10.0050.03611.73
5.3.00.0060.03511.72
5.2.170.0070.0339.23
5.2.160.0070.0269.22
5.2.150.0020.0329.22
5.2.140.0050.0309.22
5.2.130.0040.0299.18
5.2.120.0040.0299.18
5.2.110.0060.0279.19
5.2.100.0090.0249.18
5.2.90.0090.0279.18
5.2.80.0030.0349.18
5.2.70.0040.0319.17
5.2.60.0040.0349.13
5.2.50.0060.0369.10
5.2.40.0110.0269.08
5.2.30.0050.0289.05
5.2.20.0060.0279.04
5.2.10.0080.0298.94
5.2.00.0040.0298.80
5.1.60.0070.0228.10
5.1.50.0060.0318.09
5.1.40.0040.0248.07
5.1.30.0060.0238.42
5.1.20.0030.0288.45
5.1.10.0040.0348.17
5.1.00.0070.0228.17
5.0.50.0090.0236.64
5.0.40.0050.0246.50
5.0.30.0020.0346.32
5.0.20.0060.0206.29
5.0.10.0020.0216.27
5.0.00.0050.0306.26
4.4.90.0020.0164.78
4.4.80.0030.0184.76
4.4.70.0040.0184.76
4.4.60.0040.0144.75
4.4.50.0040.0144.77
4.4.40.0020.0254.71
4.4.30.0030.0154.76
4.4.20.0020.0164.84
4.4.10.0020.0164.85
4.4.00.0020.0254.76
4.3.110.0020.0164.67
4.3.100.0030.0144.67
4.3.90.0030.0144.63
4.3.80.0010.0264.58
4.3.70.0030.0154.63
4.3.60.0020.0194.63
4.3.50.0050.0194.63
4.3.40.0040.0314.54
4.3.30.0020.0213.31
4.3.20.0020.0183.29
4.3.10.0010.0163.24
4.3.00.0000.0237.00

preferences:
40.94 ms | 401 KiB | 5 Q