3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL); class asd { function __construct() { echo $unexisting; echo 'error_reporting on called function: ' . ini_get('error_reporting') . PHP_EOL; } function run() { asd1(); } } function asd1() { asd2(); } function asd2() { asd3(); } function asd3() { echo 'error_reporting on leaf: ' . ini_get('error_reporting') . PHP_EOL; @error_log('I am an error'); } $asd = new asd(); echo 'error_reporting before @: ' . ini_get('error_reporting') . PHP_EOL; @$asd->run();

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.0110.01116.75
8.3.50.0120.00821.14
8.3.40.0040.01118.77
8.3.30.0060.00918.58
8.3.20.0070.00020.29
8.3.10.0080.00023.79
8.3.00.0040.00423.73
8.2.180.0090.00916.86
8.2.170.0090.00622.96
8.2.160.0100.00320.35
8.2.150.0000.00824.18
8.2.140.0150.00024.66
8.2.130.0040.00421.18
8.2.120.0080.00026.35
8.2.110.0080.00319.30
8.2.100.0040.00818.22
8.2.90.0040.00419.22
8.2.80.0040.00417.97
8.2.70.0030.00617.63
8.2.60.0090.00017.80
8.2.50.0050.00318.10
8.2.40.0040.00420.68
8.2.30.0000.00720.58
8.2.20.0070.00017.67
8.2.10.0110.00018.04
8.2.00.0040.00418.15
8.1.280.0100.00725.92
8.1.270.0030.00623.96
8.1.260.0060.00328.09
8.1.250.0080.00028.09
8.1.240.0040.00722.45
8.1.230.0060.00617.52
8.1.220.0030.00517.74
8.1.210.0000.01018.77
8.1.200.0060.00317.38
8.1.190.0030.00617.23
8.1.180.0000.00818.10
8.1.170.0090.00018.31
8.1.160.0000.00722.16
8.1.150.0040.00418.91
8.1.140.0040.00419.55
8.1.130.0070.00017.72
8.1.120.0040.00417.48
8.1.110.0000.00817.54
8.1.100.0030.00517.36
8.1.90.0030.00317.38
8.1.80.0040.00417.37
8.1.70.0000.00717.48
8.1.60.0090.00017.58
8.1.50.0060.00317.59
8.1.40.0040.00417.57
8.1.30.0000.00817.60
8.1.20.0000.00817.69
8.1.10.0060.00317.46
8.1.00.0040.00417.51
8.0.300.0090.00018.77
8.0.290.0060.00316.75
8.0.280.0000.00718.39
8.0.270.0030.00317.18
8.0.260.0000.00719.11
8.0.250.0030.00517.03
8.0.240.0040.00417.10
8.0.230.0070.00017.05
8.0.220.0040.00416.96
8.0.210.0030.00316.96
8.0.200.0030.00317.03
8.0.190.0000.00716.90
8.0.180.0040.00416.88
8.0.170.0040.00416.89
8.0.160.0040.00316.99
8.0.150.0040.00416.82
8.0.140.0030.00616.91
8.0.130.0000.00513.56
8.0.120.0040.00416.82
8.0.110.0000.00816.99
8.0.100.0040.00416.93
8.0.90.0040.00416.80
8.0.80.0040.01116.99
8.0.70.0070.00016.97
8.0.60.0040.00416.92
8.0.50.0050.00316.92
8.0.30.0080.00917.24
8.0.20.0130.00817.40
8.0.10.0050.00216.93
8.0.00.0130.00616.77
7.4.330.0000.00516.93
7.4.320.0070.00016.68
7.4.300.0000.00716.62
7.4.290.0030.00316.50
7.4.280.0000.00916.52
7.4.270.0040.00416.45
7.4.260.0000.00716.61
7.4.250.0040.00416.45
7.4.240.0020.00516.56
7.4.230.0070.00016.43
7.4.220.0070.01416.62
7.4.210.0070.00716.60
7.4.200.0000.00716.51
7.4.160.0080.00616.75
7.4.150.0120.01117.40
7.4.140.0150.01017.86
7.4.130.0140.00816.54
7.4.120.0060.01316.67
7.4.110.0170.00016.51
7.4.100.0130.01016.50
7.4.90.0130.00716.44
7.4.80.0120.01219.39
7.4.70.0170.00316.63
7.4.60.0060.01016.48
7.4.50.0040.01116.50
7.4.40.0160.00316.62
7.4.30.0030.01316.51
7.4.00.0030.00814.77
7.3.330.0030.00313.23
7.3.320.0060.00013.36
7.3.310.0000.00716.37
7.3.300.0030.00316.48
7.3.290.0030.00316.25
7.3.280.0110.00616.38
7.3.270.0070.01017.40
7.3.260.0060.01216.45
7.3.250.0090.01016.45
7.3.240.0090.00816.53
7.3.230.0030.01316.40
7.3.210.0060.01016.63
7.3.200.0100.00716.62
7.3.190.0070.01016.46
7.3.180.0100.01016.36
7.3.170.0000.01716.47
7.3.160.0100.00716.35
7.2.330.0070.01016.42
7.2.320.0090.00816.69
7.2.310.0140.00716.81
7.2.300.0090.01516.76
7.2.290.0110.00616.50
7.2.60.0000.01716.74
7.2.00.0040.01119.52
7.1.200.0040.00715.60
7.1.100.0050.00318.01
7.1.70.0060.00917.35
7.1.60.0070.01719.06
7.1.50.0130.01016.64
7.1.00.0070.06722.37
7.0.200.0030.00516.55
7.0.60.0100.05720.03
7.0.50.0030.06017.83
7.0.40.0030.04320.26
7.0.30.0270.07320.09
7.0.20.0170.06320.23
7.0.10.0030.08020.24
7.0.00.0070.05320.19
5.6.280.0030.07321.14
5.6.210.0130.04320.70
5.6.200.0130.07318.25
5.6.190.0000.06320.55
5.6.180.0100.08320.61
5.6.170.0470.07320.40
5.6.160.0070.07320.47
5.6.150.0070.08018.28
5.6.140.0070.08018.15
5.6.130.0200.07718.23
5.6.120.0170.07321.13
5.6.110.0030.04020.98
5.6.100.0100.04321.04
5.6.90.0030.04321.00
5.6.80.0200.07020.38
5.5.350.0270.08720.44
5.5.340.0030.07317.95
5.5.330.0100.07720.29
5.5.320.0770.05720.38
5.5.310.0330.07720.27
5.5.300.0030.04017.98
5.5.290.0070.08018.02
5.5.280.0070.08720.77
5.5.270.0030.04020.68
5.5.260.0070.03720.80
5.5.250.0030.08320.62
5.5.240.0100.08320.27

preferences:
58.78 ms | 401 KiB | 5 Q