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.0070.00718.30
8.3.50.0150.00421.21
8.3.40.0130.00718.86
8.3.30.0030.01019.13
8.3.20.0100.00320.13
8.3.10.0000.00823.52
8.3.00.0040.00419.38
8.2.180.0130.00918.41
8.2.170.0030.01022.96
8.2.160.0000.01520.38
8.2.150.0050.00324.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0080.00022.25
8.2.110.0140.00322.07
8.2.100.0120.00017.63
8.2.90.0040.00419.28
8.2.80.0040.00417.97
8.2.70.0040.00417.50
8.2.60.0040.00417.93
8.2.50.0030.00518.07
8.2.40.0000.00919.82
8.2.30.0040.00417.99
8.2.20.0000.00817.60
8.2.10.0000.00817.90
8.2.00.0000.00817.68
8.1.280.0100.01325.92
8.1.270.0040.00423.82
8.1.260.0070.00026.35
8.1.250.0000.00728.09
8.1.240.0080.00023.97
8.1.230.0090.00319.16
8.1.220.0000.00917.74
8.1.210.0080.00018.77
8.1.200.0000.00817.10
8.1.190.0030.00617.25
8.1.180.0080.00018.10
8.1.170.0100.00018.54
8.1.160.0040.00421.90
8.1.150.0080.00018.78
8.1.140.0030.00517.33
8.1.130.0000.00717.81
8.1.120.0000.00717.36
8.1.110.0040.00417.21
8.1.100.0000.00717.25
8.1.90.0070.00017.18
8.1.80.0000.00717.25
8.1.70.0000.00717.28
8.1.60.0000.00817.54
8.1.50.0030.00517.38
8.1.40.0050.00217.46
8.1.30.0040.00417.48
8.1.20.0040.00417.63
8.1.10.0000.00717.55
8.1.00.0000.00817.30
8.0.300.0040.00418.77
8.0.290.0050.00316.75
8.0.280.0030.00318.38
8.0.270.0070.00017.07
8.0.260.0030.00317.16
8.0.250.0060.00016.85
8.0.240.0040.00416.82
8.0.230.0040.00416.82
8.0.220.0040.00416.88
8.0.210.0080.00016.93
8.0.200.0000.00616.94
8.0.190.0030.00516.86
8.0.180.0050.00216.85
8.0.170.0040.00417.00
8.0.160.0000.00716.80
8.0.150.0000.00716.79
8.0.140.0000.00716.85
8.0.130.0000.00613.34
8.0.120.0040.00416.74
8.0.110.0000.00716.88
8.0.100.0000.00716.80
8.0.90.0070.00016.86
8.0.80.0000.01516.88
8.0.70.0030.00516.88
8.0.60.0050.00316.77
8.0.50.0050.00216.73
8.0.30.0080.01416.81
8.0.20.0110.00817.40
8.0.10.0040.00417.01
8.0.00.0090.00916.72
7.4.330.0000.00515.02
7.4.320.0030.00316.45
7.4.300.0070.00016.35
7.4.290.0030.00516.40
7.4.280.0000.00716.33
7.4.270.0030.00316.47
7.4.260.0000.00716.39
7.4.250.0000.00716.39
7.4.240.0030.00316.50
7.4.230.0070.00016.61
7.4.220.0130.01216.36
7.4.210.0100.00316.50
7.4.200.0040.00416.63
7.4.160.0070.00916.51
7.4.150.0100.01017.40
7.4.140.0130.01217.86
7.4.130.0070.01116.47
7.4.120.0090.00816.47
7.4.110.0070.01016.57
7.4.100.0080.00816.45
7.4.90.0140.00316.42
7.4.80.0180.00619.39
7.4.70.0170.00016.27
7.4.60.0130.00316.54
7.4.50.0000.00816.25
7.4.40.0070.01116.60
7.4.30.0100.01016.56
7.4.00.0070.01114.88
7.3.330.0000.00513.22
7.3.320.0000.00613.31
7.3.310.0060.00016.31
7.3.300.0000.00716.24
7.3.290.0120.00716.27
7.3.280.0070.01116.27
7.3.270.0140.00317.40
7.3.260.0170.00716.53
7.3.250.0090.00716.53
7.3.240.0120.00616.59
7.3.230.0120.00416.43
7.3.210.0060.00916.43
7.3.200.0060.01119.39
7.3.190.0130.00316.41
7.3.180.0060.00916.38
7.3.170.0100.00716.27
7.3.160.0060.01016.36
7.3.120.0070.00714.83
7.3.110.0060.00914.63
7.3.100.0130.00314.77
7.3.90.0060.00914.98
7.3.80.0100.00314.50
7.3.70.0070.01114.76
7.3.60.0080.00014.89
7.3.50.0030.01014.73
7.3.40.0100.00714.62
7.3.30.0040.01114.66
7.3.20.0040.00816.57
7.3.10.0100.00316.72
7.3.00.0000.01416.55
7.2.330.0080.00816.48
7.2.320.0030.01516.22
7.2.310.0060.01016.25
7.2.300.0080.00916.59
7.2.290.0120.00616.62
7.2.250.0040.01515.11
7.2.240.0070.01114.75
7.2.230.0120.00614.55
7.2.220.0030.01015.13
7.2.210.0040.01514.71
7.2.200.0030.01314.74
7.2.190.0030.01415.03
7.2.180.0030.01314.70
7.2.170.0090.00915.06
7.2.00.0040.01118.95
7.1.330.0090.00615.52
7.1.320.0040.00715.75
7.1.310.0040.01115.71
7.1.300.0030.01015.76
7.1.290.0090.00915.59
7.1.280.0030.01315.65
7.1.270.0060.00715.52
7.1.260.0040.01115.91
7.1.100.0060.00618.16
7.1.70.0000.00816.96
7.1.60.0130.01319.11
7.1.50.0070.01716.86
7.1.00.0030.07722.48
7.0.200.0070.01016.65
7.0.140.0030.06322.01
7.0.60.0030.09020.04
7.0.50.0170.06717.88
7.0.40.0170.07720.27
7.0.30.0430.05320.09
7.0.20.0200.08020.19
7.0.10.0130.08320.26
7.0.00.0000.08320.22
5.6.280.0030.07320.79
5.6.210.0070.05020.54
5.6.200.0100.08318.30
5.6.190.0130.08020.42
5.6.180.0230.08020.64
5.6.170.0270.08320.57
5.6.160.0130.07720.46
5.6.150.0070.04318.18
5.6.140.0030.08718.23
5.6.130.0070.09018.18
5.6.120.0100.08021.01
5.6.110.0070.07720.99
5.6.100.0070.05721.12
5.6.90.0070.08320.98
5.6.80.0030.06320.39
5.6.70.4130.03320.51
5.5.350.0130.08020.40
5.5.340.0000.04017.94
5.5.330.0070.05320.29
5.5.320.0370.06720.34
5.5.310.0200.04720.34
5.5.300.0070.07718.05
5.5.290.0170.06317.95
5.5.280.0030.04020.78
5.5.270.0030.06720.75
5.5.260.0100.07720.80
5.5.250.0130.07720.80
5.5.240.0330.06720.08
5.4.450.1270.03719.55
5.4.440.1530.04019.57
5.4.430.1530.03719.18
5.4.420.1530.04719.41
5.4.410.1530.04319.50
5.4.400.1330.03018.85
5.4.390.0500.03718.98
5.4.380.0030.05019.06
5.4.370.0000.08318.87
5.4.360.1270.03719.22
5.4.350.0030.04319.09
5.4.340.0030.04019.09
5.4.320.0700.04019.16
5.4.310.1630.05718.84
5.4.300.1400.04319.18
5.4.290.1530.03318.98
5.4.280.1570.04318.94
5.4.270.1570.03318.97
5.4.260.1630.03719.26
5.4.250.1600.03718.94
5.4.240.1670.04019.14
5.4.230.1870.04319.07
5.4.220.1670.03319.18
5.4.210.1670.03018.86
5.4.200.1830.04018.94
5.4.190.1730.03319.14
5.4.180.1900.04318.86
5.4.170.1730.04019.21
5.4.160.1800.04319.13
5.4.150.1530.04319.06
5.4.140.1800.04716.55
5.4.130.1930.04316.36
5.4.120.1900.04016.56
5.4.110.1770.04016.42
5.4.100.1970.03316.55
5.4.90.1330.04316.45
5.4.80.0000.04016.44
5.4.70.0000.03716.40
5.4.60.1130.04316.54
5.4.50.2000.04016.51
5.4.40.1930.04316.25
5.4.30.1670.03716.23
5.4.20.1670.03016.42
5.4.10.2030.04016.43
5.4.00.1730.03715.83
5.3.290.1800.04714.59
5.3.280.1800.04014.51
5.3.270.1630.03714.70
5.3.260.1870.04714.66
5.3.250.1030.05014.52
5.3.240.0070.04314.69
5.3.230.0100.05714.52
5.3.220.1400.05314.65
5.3.210.1730.03714.57
5.3.200.1700.03714.56
5.3.190.1700.04014.55
5.3.180.1630.03714.61
5.3.170.1600.03714.58
5.3.160.1600.04014.57
5.3.150.1470.04014.48
5.3.140.1770.03714.53
5.3.130.1700.03714.46
5.3.120.1900.04714.56
5.3.110.1600.03714.63
5.3.100.1830.03314.05
5.3.90.1670.04314.06
5.3.80.1970.03314.04
5.3.70.1830.04713.93
5.3.60.1700.04014.06
5.3.50.1800.03713.89
5.3.40.1730.03714.03
5.3.30.1700.05313.89
5.3.20.1700.02313.92
5.3.10.1800.04313.59
5.3.00.1700.03713.72
5.2.170.1170.02711.13
5.2.160.0030.03711.08
5.2.150.0030.04011.11
5.2.140.0000.03711.07
5.2.130.1570.03311.11
5.2.120.1500.03311.02
5.2.110.1430.01711.02
5.2.100.1470.03010.98
5.2.90.1400.02311.33
5.2.80.1530.04011.33
5.2.70.1470.03711.27
5.2.60.1570.03710.97
5.2.50.1370.03011.03
5.2.40.1030.03010.91
5.2.30.1300.04310.96
5.2.20.1070.02710.93
5.2.10.1430.02710.78
5.2.00.1100.04010.77
5.1.60.0000.0539.90
5.1.50.0030.0579.89
5.1.40.0070.0509.86
5.1.30.0270.05710.27
5.1.20.1200.02010.41
5.1.10.1000.04710.05
5.1.00.1000.03010.13
5.0.50.0700.0279.29
5.0.40.0630.0209.29
5.0.30.0600.0339.29
5.0.20.0600.0209.29
5.0.10.0530.0239.29
5.0.00.0570.0409.29
4.4.90.0570.0179.29
4.4.80.0700.0239.29
4.4.70.0600.0139.29
4.4.60.0730.0279.29
4.4.50.0700.0239.29
4.4.40.0530.0279.29
4.4.30.0530.0179.29
4.4.20.0500.0179.29
4.4.10.0630.0239.29
4.4.00.0670.0339.29
4.3.110.0630.0179.29
4.3.100.0200.0339.29
4.3.90.0000.0179.29
4.3.80.0000.0539.29
4.3.70.0000.0239.29
4.3.60.0000.0179.29
4.3.50.0000.0239.29
4.3.40.0000.0239.29
4.3.30.0070.0179.29
4.3.20.0000.0239.29
4.3.10.0170.0279.29
4.3.00.0430.0239.29

preferences:
49.8 ms | 401 KiB | 5 Q