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); q();

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.0040.01118.55
8.3.50.0110.01121.11
8.3.40.0140.00018.76
8.3.30.0110.00419.23
8.3.20.0140.00020.16
8.3.10.0040.00423.58
8.3.00.0040.00419.38
8.2.180.0120.00316.38
8.2.170.0100.00722.96
8.2.160.0040.01120.39
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0030.00526.16
8.2.120.0080.00021.94
8.2.110.0070.00419.30
8.2.100.0080.00417.91
8.2.90.0040.00419.21
8.2.80.0030.00517.97
8.2.70.0060.00317.63
8.2.60.0000.00918.04
8.2.50.0040.00418.07
8.2.40.0000.00819.79
8.2.30.0040.00417.94
8.2.20.0000.00717.71
8.2.10.0050.00318.06
8.2.00.0000.00817.85
8.1.280.0110.01125.92
8.1.270.0000.00823.83
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0040.00722.13
8.1.230.0000.01319.00
8.1.220.0090.00017.74
8.1.210.0000.00818.77
8.1.200.0030.00617.12
8.1.190.0030.00617.23
8.1.180.0040.00418.10
8.1.170.0030.00818.64
8.1.160.0070.00021.93
8.1.150.0050.00318.76
8.1.140.0070.00017.39
8.1.130.0000.00717.70
8.1.120.0030.00317.44
8.1.110.0070.00017.36
8.1.100.0040.00417.43
8.1.90.0070.00017.36
8.1.80.0040.00417.26
8.1.70.0000.00817.37
8.1.60.0040.00417.52
8.1.50.0040.00417.41
8.1.40.0080.00017.45
8.1.30.0000.00817.57
8.1.20.0040.00417.50
8.1.10.0000.00717.41
8.1.00.0000.00717.41
8.0.300.0000.00718.77
8.0.290.0070.00016.63
8.0.280.0080.00018.44
8.0.270.0080.00017.12
8.0.260.0070.00017.18
8.0.250.0000.00716.91
8.0.240.0030.00516.88
8.0.230.0000.00716.98
8.0.220.0040.00416.93
8.0.210.0040.00416.85
8.0.200.0030.00316.97
8.0.190.0070.00017.00
8.0.180.0040.00417.04
8.0.170.0000.00916.89
8.0.160.0000.00716.92
8.0.150.0000.00816.95
8.0.140.0040.00416.80
8.0.130.0050.00013.34
8.0.120.0040.00416.75
8.0.110.0030.00516.96
8.0.100.0040.00416.77
8.0.90.0000.00716.99
8.0.80.0080.00816.90
8.0.70.0040.00416.82
8.0.60.0000.00717.04
8.0.50.0000.00716.96
8.0.30.0150.00517.17
8.0.20.0090.00917.40
8.0.10.0040.00417.00
8.0.00.0080.01116.65
7.4.330.0000.00415.02
7.4.320.0030.00316.58
7.4.300.0050.00216.43
7.4.290.0000.00616.54
7.4.280.0000.00716.51
7.4.270.0030.00316.45
7.4.260.0000.00816.52
7.4.250.0000.00716.43
7.4.240.0050.00216.45
7.4.230.0000.00816.43
7.4.220.0070.01116.48
7.4.210.0070.00716.52
7.4.200.0000.00716.37
7.4.160.0070.01416.47
7.4.150.0140.01117.40
7.4.140.0100.01317.86
7.4.130.0080.00816.40
7.4.120.0090.01016.47
7.4.110.0090.01316.21
7.4.100.0060.01116.50
7.4.90.0070.01016.64
7.4.80.0070.01019.39
7.4.70.0110.00716.29
7.4.60.0130.00316.50
7.4.50.0000.00816.31
7.4.40.0180.00316.43
7.4.30.0070.01316.39
7.4.00.0150.00014.85
7.3.330.0000.00613.38
7.3.320.0000.00513.31
7.3.310.0030.00316.36
7.3.300.0000.00716.18
7.3.290.0030.01316.29
7.3.280.0110.00816.29
7.3.270.0100.01317.40
7.3.260.0150.00916.29
7.3.250.0130.00416.40
7.3.240.0070.01416.29
7.3.230.0100.00716.41
7.3.210.0070.01016.34
7.3.200.0070.01419.39
7.3.190.0090.00916.27
7.3.180.0220.03916.35
7.3.170.0100.00716.30
7.3.160.0100.00616.63
7.2.330.0130.00316.65
7.2.320.0160.00816.68
7.2.310.0090.00616.48
7.2.300.0130.01016.38
7.2.290.0060.01516.38
7.2.60.0040.01216.59
7.2.00.0210.00918.91
7.1.200.0040.00715.53
7.1.100.0000.01517.66
7.1.70.0030.00717.18
7.1.60.0070.01819.11
7.1.50.0060.01616.73
7.1.00.0100.07022.34
7.0.200.0020.00516.69
7.0.140.0030.07321.92
7.0.60.0070.04020.07
7.0.50.0000.06317.98
7.0.40.0100.08320.20
7.0.30.0500.05020.26
7.0.20.0300.05320.12
7.0.10.0100.05720.33
7.0.00.0100.07020.20
5.6.210.0130.07320.61
5.6.200.0170.06018.21
5.6.190.0070.04020.51
5.6.180.0100.08020.61
5.6.170.0230.04720.48
5.6.160.0270.03320.46
5.6.150.0100.07018.25
5.6.140.0000.04318.15
5.6.130.0070.08318.23
5.6.120.0100.07321.15
5.6.110.0100.07720.89
5.6.100.0070.08021.11
5.6.90.0100.06721.02
5.6.80.0230.06020.38
5.6.70.4400.03320.40
5.5.350.0070.08720.43
5.5.340.0070.08017.99
5.5.330.0000.05320.41
5.5.320.3970.04320.24
5.5.310.0270.04020.28
5.5.300.0030.04317.98
5.5.290.0100.04317.98
5.5.280.0000.05320.96
5.5.270.0030.04020.88
5.5.260.0170.07320.64
5.5.250.0100.07720.79
5.5.240.0230.03720.27
5.4.450.0670.05719.21
5.4.440.0900.07719.49
5.4.430.0900.04719.19
5.4.420.0630.00019.21
5.4.410.0700.00019.57
5.4.400.0630.00019.27
5.4.390.0630.00019.09
5.4.380.0630.00019.02
5.4.370.0700.00019.13
5.4.360.0600.00019.09
5.4.350.0670.00019.12
5.4.340.0010.03912.02
5.4.320.0060.04012.50
5.4.310.0080.04412.50
5.4.300.0070.03712.51
5.4.290.0040.03912.50
5.4.280.0060.03412.40
5.4.270.0090.03212.40
5.4.260.0050.03812.39
5.4.250.0040.03812.39
5.4.240.0020.03912.40
5.4.230.0060.03612.39
5.4.220.0060.03512.39
5.4.210.0060.03412.39
5.4.200.0060.03712.39
5.4.190.0070.03412.39
5.4.180.0060.03412.39
5.4.170.0040.03612.40
5.4.160.0060.03512.39
5.4.150.0010.04512.38
5.4.140.0030.04212.07
5.4.130.0050.03812.06
5.4.120.0070.03612.02
5.4.110.0070.03412.01
5.4.100.0030.03712.01
5.4.90.0060.03612.01
5.4.80.0070.03512.01
5.4.70.0030.03612.01
5.4.60.0040.03612.01
5.4.50.0050.03512.01
5.4.40.0050.03612.00
5.4.30.0060.03412.00
5.4.20.0070.03211.99
5.4.10.0050.03411.99
5.4.00.0070.03411.48
5.3.290.0060.03912.80
5.3.280.0050.03812.71
5.3.270.0050.03912.72
5.3.260.0030.04112.72
5.3.250.0050.03912.72
5.3.240.0070.03612.72
5.3.230.0030.04112.71
5.3.220.0060.03812.68
5.3.210.0030.04512.68
5.3.200.0050.03712.68
5.3.190.0060.03612.68
5.3.180.0070.03912.67
5.3.170.0060.03512.67
5.3.160.0050.03912.68
5.3.150.0070.03712.68
5.3.140.0100.03712.66
5.3.130.0070.03912.66
5.3.120.0040.03912.66
5.3.110.0080.03512.66
5.3.100.0070.03512.13
5.3.90.0060.03612.11
5.3.80.0060.03612.10
5.3.70.0070.03812.10
5.3.60.0050.03612.08
5.3.50.0050.03612.04
5.3.40.0030.03812.04
5.3.30.0080.03112.00
5.3.20.0040.03711.77
5.3.10.0030.03611.73
5.3.00.0060.03511.72
5.2.170.0030.0329.21
5.2.160.0040.0299.22
5.2.150.0050.0299.22
5.2.140.0080.0279.21
5.2.130.0040.0299.18
5.2.120.0030.0299.18
5.2.110.0020.0319.18
5.2.100.0030.0339.18
5.2.90.0040.0339.18
5.2.80.0060.0299.17
5.2.70.0090.0399.17
5.2.60.0050.0349.13
5.2.50.0060.0409.10
5.2.40.0040.0329.07
5.2.30.0060.0289.05
5.2.20.0080.0299.04
5.2.10.0050.0308.94
5.2.00.0060.0308.80
5.1.60.0070.0268.09
5.1.50.0060.0288.09
5.1.40.0030.0268.07
5.1.30.0060.0328.42
5.1.20.0060.0258.44
5.1.10.0050.0258.16
5.1.00.0030.0268.16
5.0.50.0010.0226.64
5.0.40.0010.0216.50
5.0.30.0020.0326.31
5.0.20.0030.0206.28
5.0.10.0050.0186.26
5.0.00.0020.0346.25
4.4.90.0030.0154.77
4.4.80.0050.0184.75
4.4.70.0040.0134.76
4.4.60.0040.0254.75
4.4.50.0050.0194.77
4.4.40.0030.0244.71
4.4.30.0040.0144.75
4.4.20.0040.0144.84
4.4.10.0000.0174.85
4.4.00.0000.0284.76
4.3.110.0020.0164.67
4.3.100.0010.0164.66
4.3.90.0010.0154.63
4.3.80.0030.0254.59
4.3.70.0030.0144.63
4.3.60.0010.0164.63
4.3.50.0020.0154.63
4.3.40.0020.0254.54
4.3.30.0030.0153.30
4.3.20.0020.0173.28
4.3.10.0010.0163.24
4.3.00.0100.0206.63

preferences:
67.03 ms | 401 KiB | 5 Q