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(function () {}); 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.0100.00618.53
8.3.50.0100.00821.22
8.3.40.0090.00618.82
8.3.30.0140.00019.09
8.3.20.0070.00720.20
8.3.10.0080.00023.68
8.3.00.0080.00019.51
8.2.180.0140.00718.25
8.2.170.0040.01122.96
8.2.160.0070.00720.43
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0070.00026.16
8.2.120.0030.00620.63
8.2.110.0090.00020.35
8.2.100.0070.00318.18
8.2.90.0000.00918.09
8.2.80.0030.00517.97
8.2.70.0050.00317.93
8.2.60.0080.00018.16
8.2.50.0040.00418.10
8.2.40.0060.00320.64
8.2.30.0070.00019.19
8.2.20.0000.00717.66
8.2.10.0050.00218.04
8.2.00.0040.00417.67
8.1.280.0140.00425.92
8.1.270.0000.00823.87
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0060.00320.50
8.1.230.0100.00320.82
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0040.00417.23
8.1.180.0050.00318.10
8.1.170.0040.00418.47
8.1.160.0000.00718.84
8.1.150.0000.00820.55
8.1.140.0040.00417.41
8.1.130.0030.00617.77
8.1.120.0030.00317.44
8.1.110.0000.00817.40
8.1.100.0000.00817.29
8.1.90.0030.00317.44
8.1.80.0070.00017.40
8.1.70.0000.00717.39
8.1.60.0040.00417.56
8.1.50.0040.00417.42
8.1.40.0090.00017.42
8.1.30.0030.00617.62
8.1.20.0000.00817.57
8.1.10.0000.00717.55
8.1.00.0000.00717.50
8.0.300.0040.00419.60
8.0.290.0040.00416.63
8.0.280.0070.00018.36
8.0.270.0030.00317.18
8.0.260.0000.00617.11
8.0.250.0040.00416.97
8.0.240.0000.00716.97
8.0.230.0070.00016.92
8.0.220.0040.00416.93
8.0.210.0040.00416.77
8.0.200.0080.00017.00
8.0.190.0060.00317.03
8.0.180.0070.00016.96
8.0.170.0030.00617.02
8.0.160.0050.00317.08
8.0.150.0060.00316.92
8.0.140.0040.00416.90
8.0.130.0000.00513.38
8.0.120.0000.00716.80
8.0.110.0000.00816.91
8.0.100.0070.00016.83
8.0.90.0050.00216.79
8.0.80.0110.00516.90
8.0.70.0000.00716.90
8.0.60.0040.00416.98
8.0.50.0050.00316.95
8.0.30.0110.00716.98
8.0.20.0100.01017.40
8.0.10.0040.00416.84
8.0.00.0120.00516.60
7.4.330.0060.00015.02
7.4.320.0030.00316.54
7.4.300.0030.00316.46
7.4.290.0000.00716.48
7.4.280.0040.00416.41
7.4.270.0030.00616.43
7.4.260.0070.00016.56
7.4.250.0000.00816.49
7.4.240.0020.00516.54
7.4.230.0000.00716.29
7.4.220.0100.00716.54
7.4.210.0030.01116.37
7.4.200.0000.00816.63
7.4.160.0070.01316.46
7.4.150.0110.00717.40
7.4.140.0190.00917.86
7.4.130.0120.00716.38
7.4.120.0150.00516.37
7.4.110.0130.01016.62
7.4.100.0240.00016.33
7.4.90.0140.00316.44
7.4.80.0120.00619.39
7.4.70.0120.00916.51
7.4.60.0060.01016.71
7.4.50.0060.00316.53
7.4.40.0110.00716.51
7.4.30.0100.01016.43
7.4.00.0050.01214.90
7.3.330.0000.00613.07
7.3.320.0050.00013.12
7.3.310.0070.00016.32
7.3.300.0000.00716.15
7.3.290.0090.00916.33
7.3.280.0080.00916.26
7.3.270.0100.01417.40
7.3.260.0060.01316.35
7.3.250.0060.01116.40
7.3.240.0090.00616.34
7.3.230.0120.00416.53
7.3.210.0120.00416.55
7.3.200.0060.01119.39
7.3.190.0030.01316.36
7.3.180.0070.00716.45
7.3.170.0090.01316.46
7.3.160.0060.00916.24
7.3.120.0100.00014.87
7.3.110.0110.00714.97
7.3.100.0030.00914.77
7.3.90.0130.00314.78
7.3.80.0060.00314.62
7.3.70.0030.00614.70
7.3.60.0030.00914.54
7.3.50.0080.00614.77
7.3.40.0060.00914.73
7.3.30.0080.00014.87
7.3.20.0040.01116.55
7.3.10.0040.01416.55
7.3.00.0110.00716.69
7.2.330.0100.00916.52
7.2.320.0040.01416.58
7.2.310.0070.01016.68
7.2.300.0130.01016.44
7.2.290.0220.00016.41
7.2.250.0060.01215.21
7.2.240.0100.01014.68
7.2.230.0040.01414.89
7.2.220.0060.00615.17
7.2.210.0060.00914.88
7.2.200.0090.00914.84
7.2.190.0050.00514.78
7.2.180.0030.01214.98
7.2.170.0040.00715.04
7.2.60.0060.00616.89
7.2.00.0260.00719.29
7.1.330.0030.00915.60
7.1.320.0030.01015.84
7.1.310.0040.01115.74
7.1.300.0030.00715.87
7.1.290.0100.00715.50
7.1.280.0060.00615.61
7.1.270.0030.00915.75
7.1.260.0030.01015.63
7.1.200.0090.00315.68
7.1.100.0040.00717.71
7.1.70.0000.00717.18
7.1.60.0100.01319.11
7.1.50.0030.00916.99
7.1.00.0070.07322.54
7.0.200.0030.00516.57
7.0.140.0000.07722.18
7.0.60.0070.07320.07
7.0.50.0100.07717.73
7.0.40.0070.04320.27
7.0.30.0270.08020.08
7.0.20.0200.04320.23
7.0.10.0070.06720.21
7.0.00.0070.05020.23
5.6.280.0030.07020.93
5.6.210.0030.08320.52
5.6.200.0170.06718.15
5.6.190.0100.09320.47
5.6.180.0270.07320.61
5.6.170.0230.04720.56
5.6.160.0100.07020.57
5.6.150.0100.06718.23
5.6.140.0100.06318.28
5.6.130.0030.08018.19
5.6.120.0070.05021.15
5.6.110.0100.07721.14
5.6.100.0100.06021.01
5.6.90.0100.04021.00
5.6.80.0170.07720.52
5.6.70.3930.04020.51
5.5.350.0070.03320.47
5.5.340.0070.03717.92
5.5.330.0000.04320.40
5.5.320.0430.07020.36
5.5.310.0370.04020.51
5.5.300.0030.08717.99
5.5.290.0130.03017.92
5.5.280.0100.04020.78
5.5.270.0000.04320.88
5.5.260.0170.07720.89
5.5.250.0130.07720.64
5.5.240.0200.09020.20
5.4.450.0700.07319.17
5.4.440.0800.06719.38
5.4.430.0630.05719.56
5.4.420.0670.00019.41
5.4.410.0700.00019.52
5.4.400.0630.00019.10
5.4.390.0830.00019.16
5.4.380.0630.00019.11
5.4.370.0600.00019.11
5.4.360.0600.00019.13
5.4.350.0730.00019.16
5.4.340.0060.04112.01
5.4.320.0030.03812.50
5.4.310.0040.04012.50
5.4.300.0040.03712.50
5.4.290.0050.03712.50
5.4.280.0030.03712.40
5.4.270.0070.03812.40
5.4.260.0060.03612.40
5.4.250.0050.03712.40
5.4.240.0050.03512.40
5.4.230.0060.03612.39
5.4.220.0050.03612.39
5.4.210.0050.03512.39
5.4.200.0060.03712.39
5.4.190.0050.03612.39
5.4.180.0070.03312.39
5.4.170.0030.03812.39
5.4.160.0050.03512.39
5.4.150.0030.03712.38
5.4.140.0040.03712.07
5.4.130.0020.03812.05
5.4.120.0080.03112.01
5.4.110.0050.03412.01
5.4.100.0030.03712.02
5.4.90.0050.03812.01
5.4.80.0080.03412.02
5.4.70.0060.03912.01
5.4.60.0060.03312.01
5.4.50.0090.03712.01
5.4.40.0090.03112.00
5.4.30.0070.03611.99
5.4.20.0060.03712.00
5.4.10.0060.03511.99
5.4.00.0040.03811.48
5.3.290.0070.03712.80
5.3.280.0070.04212.71
5.3.270.0100.04412.72
5.3.260.0050.05012.72
5.3.250.0040.03912.72
5.3.240.0080.03512.71
5.3.230.0060.03812.71
5.3.220.0040.03912.68
5.3.210.0090.03612.68
5.3.200.0090.03312.68
5.3.190.0040.03912.68
5.3.180.0030.04212.67
5.3.170.0050.03712.67
5.3.160.0050.03812.67
5.3.150.0100.03612.67
5.3.140.0070.04012.66
5.3.130.0060.03912.66
5.3.120.0060.03912.66
5.3.110.0090.03712.66
5.3.100.0070.04012.12
5.3.90.0050.03612.11
5.3.80.0030.03812.10
5.3.70.0130.02912.09
5.3.60.0070.03512.08
5.3.50.0070.03812.03
5.3.40.0070.03412.03
5.3.30.0080.03211.99
5.3.20.0070.03311.77
5.3.10.0060.03311.73
5.3.00.0050.03511.72
5.2.170.0090.0319.21
5.2.160.0060.0289.22
5.2.150.0030.0319.21
5.2.140.0040.0319.21
5.2.130.0050.0289.17
5.2.120.0070.0269.17
5.2.110.0020.0399.18
5.2.100.0080.0279.18
5.2.90.0060.0299.18
5.2.80.0060.0359.17
5.2.70.0050.0329.17
5.2.60.0080.0359.13
5.2.50.0030.0319.10
5.2.40.0040.0299.07
5.2.30.0040.0349.05
5.2.20.0010.0329.04
5.2.10.0030.0298.94
5.2.00.0050.0288.81
5.1.60.0040.0248.09
5.1.50.0060.0268.09
5.1.40.0040.0268.06
5.1.30.0020.0328.42
5.1.20.0040.0278.44
5.1.10.0050.0248.16
5.1.00.0040.0258.17
5.0.50.0050.0186.64
5.0.40.0030.0206.50
5.0.30.0030.0356.31
5.0.20.0050.0206.28
5.0.10.0030.0276.26
5.0.00.0030.0336.25
4.4.90.0030.0164.78
4.4.80.0050.0144.76
4.4.70.0020.0184.75
4.4.60.0020.0184.75
4.4.50.0020.0164.77
4.4.40.0020.0264.71
4.4.30.0030.0154.76
4.4.20.0010.0174.84
4.4.10.0020.0164.85
4.4.00.0020.0254.76
4.3.110.0020.0164.67
4.3.100.0030.0144.66
4.3.90.0050.0124.64
4.3.80.0050.0224.58
4.3.70.0030.0144.63
4.3.60.0030.0164.62
4.3.50.0040.0164.63
4.3.40.0030.0244.54
4.3.30.0020.0163.30
4.3.20.0020.0153.29
4.3.10.0020.0163.24
4.3.00.0130.0277.00

preferences:
48.87 ms | 401 KiB | 5 Q