3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL); class asd { function run() { echo $unexisting; echo 'error_reporting on called function: ' . ini_get('error_reporting') . PHP_EOL; 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.0100.01016.75
8.3.50.0140.00721.13
8.3.40.0100.00718.75
8.3.30.0110.00718.99
8.3.20.0070.00720.50
8.3.10.0040.00423.67
8.3.00.0030.01223.79
8.2.180.0110.00716.75
8.2.170.0110.00322.96
8.2.160.0070.00720.41
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0040.00421.03
8.2.120.0030.00526.35
8.2.110.0090.00022.25
8.2.100.0080.00418.04
8.2.90.0040.00419.17
8.2.80.0050.00318.04
8.2.70.0000.01017.75
8.2.60.0060.00317.92
8.2.50.0030.00618.07
8.2.40.0040.00422.14
8.2.30.0000.00720.70
8.2.20.0000.00717.78
8.2.10.0030.00618.05
8.2.00.0060.00318.12
8.1.280.0060.01225.92
8.1.270.0000.00923.79
8.1.260.0060.00328.09
8.1.250.0040.00428.09
8.1.240.0090.00020.43
8.1.230.0070.00419.17
8.1.220.0030.00517.78
8.1.210.0050.00318.77
8.1.200.0060.00317.36
8.1.190.0050.00317.25
8.1.180.0040.00418.10
8.1.170.0040.00418.65
8.1.160.0000.00720.70
8.1.150.0000.00818.78
8.1.140.0040.00419.62
8.1.130.0070.00017.70
8.1.120.0030.00417.53
8.1.110.0050.00317.48
8.1.100.0030.00617.35
8.1.90.0040.00417.43
8.1.80.0030.00417.30
8.1.70.0000.00717.34
8.1.60.0080.00017.48
8.1.50.0000.00917.55
8.1.40.0000.00817.48
8.1.30.0030.00617.59
8.1.20.0040.00417.70
8.1.10.0040.00417.44
8.1.00.0090.00017.55
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0040.00418.50
8.0.270.0030.00317.22
8.0.260.0030.00317.30
8.0.250.0000.00717.01
8.0.240.0000.00717.05
8.0.230.0000.00716.92
8.0.220.0000.00716.84
8.0.210.0030.00316.87
8.0.200.0030.00316.91
8.0.190.0000.00717.02
8.0.180.0050.00217.02
8.0.170.0050.00317.04
8.0.160.0000.00716.94
8.0.150.0000.00816.88
8.0.140.0070.00316.95
8.0.130.0030.00313.58
8.0.120.0040.00416.90
8.0.110.0040.00417.02
8.0.100.0000.00816.91
8.0.90.0040.00416.93
8.0.80.0080.00716.95
8.0.70.0000.00716.98
8.0.60.0030.00516.79
8.0.50.0040.00416.99
8.0.30.0100.01017.13
8.0.20.0120.01317.40
8.0.10.0070.00016.92
8.0.00.0070.01416.77
7.4.330.0050.00016.96
7.4.320.0040.00416.59
7.4.300.0030.00316.56
7.4.290.0070.00016.61
7.4.280.0090.00016.50
7.4.270.0040.00316.50
7.4.260.0080.00016.59
7.4.250.0070.00016.47
7.4.240.0020.00516.57
7.4.230.0030.00316.51
7.4.220.0170.01016.41
7.4.210.0050.00916.63
7.4.200.0000.00716.31
7.4.160.0090.00616.35
7.4.150.0070.01817.40
7.4.140.0100.00717.86
7.4.130.0100.00716.52
7.4.120.0090.01216.50
7.4.110.0070.01016.68
7.4.100.0070.01716.75
7.4.90.0140.00316.64
7.4.80.0120.00619.39
7.4.70.0130.00716.40
7.4.60.0040.01416.46
7.4.50.0060.01016.38
7.4.40.0100.00716.33
7.4.30.0060.01216.58
7.4.00.0100.00715.07
7.3.330.0060.00013.41
7.3.320.0030.00313.18
7.3.310.0030.00516.39
7.3.300.0030.00316.37
7.3.290.0000.00716.38
7.3.280.0090.00816.40
7.3.270.0090.00917.40
7.3.260.0090.00916.50
7.3.250.0110.00916.55
7.3.240.0130.00616.59
7.3.230.0060.01316.41
7.3.210.0040.01216.60
7.3.200.0120.00416.59
7.3.190.0110.00716.56
7.3.180.0060.01516.61
7.3.170.0000.01716.46
7.3.160.0140.00716.61
7.3.120.0070.01214.86
7.3.110.0100.00914.85
7.3.100.0110.00514.99
7.3.90.0050.00714.70
7.3.80.0110.00614.69
7.3.70.0080.00514.95
7.3.60.0070.00814.85
7.3.50.0050.00914.83
7.3.40.0080.00714.69
7.3.30.0020.00914.64
7.3.20.0050.00816.74
7.3.10.0040.01016.79
7.3.00.0040.00616.60
7.2.330.0000.01816.79
7.2.320.0090.01216.47
7.2.310.0100.00616.77
7.2.300.0160.00716.53
7.2.290.0040.01216.57
7.2.250.0060.01114.96
7.2.240.0130.00314.93
7.2.230.0030.01215.29
7.2.220.0110.00315.07
7.2.210.0060.00515.12
7.2.200.0040.01114.99
7.2.190.0040.00515.11
7.2.180.0070.00715.10
7.2.170.0030.01315.07
7.2.160.0070.01014.67
7.2.150.0030.01616.66
7.2.140.0080.00416.71
7.2.130.0080.00316.87
7.2.120.0030.00816.88
7.2.110.0030.01016.88
7.2.100.0020.01016.97
7.2.90.0070.00716.97
7.2.80.0030.01116.88
7.2.70.0020.01217.06
7.2.60.0060.00416.93
7.2.50.0060.00916.96
7.2.40.0020.01116.97
7.2.30.0030.00917.04
7.2.20.0030.00917.00
7.2.10.0070.00616.96
7.2.00.0020.01017.76
7.1.330.0050.01215.61
7.1.320.0060.00615.66
7.1.310.0050.00515.92
7.1.300.0050.00915.75
7.1.290.0070.00515.71
7.1.280.0060.00315.74
7.1.270.0080.00515.83
7.1.260.0060.00715.89
7.1.250.0080.00415.54
7.1.240.0100.00315.68
7.1.230.0030.00615.45
7.1.220.0070.00715.53
7.1.210.0040.01115.58
7.1.200.0040.00715.81
7.1.190.0070.00315.65
7.1.180.0100.00015.63
7.1.170.0060.00615.75
7.1.160.0060.00715.69
7.1.150.0080.00415.91
7.1.140.0040.00715.75
7.1.130.0080.00815.88
7.1.120.0000.00915.80
7.1.110.0030.01015.66
7.1.100.0060.00616.91
7.1.90.0070.00715.87
7.1.80.0000.01515.83
7.1.70.0000.01216.54
7.1.60.0130.00517.49
7.1.50.0070.00716.30
7.1.40.0070.00715.86
7.1.30.0040.00915.79
7.1.20.0070.00715.76
7.1.10.0060.00315.59
7.1.00.0050.04319.10
7.0.330.0080.00015.35
7.0.320.0070.00715.24
7.0.310.0110.00315.41
7.0.300.0040.01115.34
7.0.290.0030.00915.61
7.0.280.0060.00915.44
7.0.270.0000.01515.39
7.0.260.0100.00015.36
7.0.250.0060.00615.49
7.0.240.0000.01415.54
7.0.230.0030.01015.40
7.0.220.0030.00615.37
7.0.210.0030.00915.46
7.0.200.0070.00316.04
7.0.190.0060.00615.36
7.0.180.0080.00315.28
7.0.170.0030.00915.32
7.0.160.0000.01515.59
7.0.150.0000.00715.33
7.0.140.0070.00415.40
7.0.130.0070.00715.18
7.0.120.0000.01415.39
7.0.110.0030.01015.52
7.0.100.0030.00815.54
7.0.90.0030.00915.35
7.0.80.0030.01015.22
7.0.70.0060.00915.19
7.0.60.0050.02717.76
7.0.50.0090.03316.80
7.0.40.0050.05216.65
7.0.30.0150.03116.82
7.0.20.0120.05716.87
7.0.10.0050.03216.94
7.0.00.0070.02616.81
5.6.400.0000.01414.51
5.6.390.0100.00714.41
5.6.380.0060.00914.54
5.6.370.0040.01114.32
5.6.360.0040.00714.28
5.6.350.0070.00714.49
5.6.340.0080.00314.36
5.6.330.0040.01214.33
5.6.320.0100.00714.54
5.6.310.0040.00714.52
5.6.300.0000.00814.48
5.6.290.0060.00914.47
5.6.280.0030.02817.71
5.6.270.0100.00014.42
5.6.260.0060.00614.41
5.6.250.0060.00614.30
5.6.240.0100.00614.34
5.6.230.0100.00314.11
5.6.220.0000.01714.45
5.6.210.0110.03717.27
5.6.200.0040.04416.29
5.6.190.0030.04317.42
5.6.180.0090.04517.41
5.6.170.0130.02717.32
5.6.160.0020.04317.52
5.6.150.0030.04616.36
5.6.140.0060.02416.18
5.6.130.0050.02416.17
5.6.120.0130.03817.61
5.6.110.0100.02117.72
5.6.100.0100.04417.72
5.6.90.0080.03617.84
5.6.80.0130.03617.43
5.6.70.0070.00314.37
5.6.60.0040.00714.24
5.6.50.0000.01314.10
5.6.40.0080.00414.32
5.6.30.0060.00614.08
5.6.20.0030.00614.33
5.6.10.0000.00814.20
5.6.00.0100.00314.24
5.5.380.0000.01614.43
5.5.370.0000.01114.16
5.5.360.0040.01114.45
5.5.350.0120.04217.30
5.5.340.0090.02516.11
5.5.330.0060.04617.21
5.5.320.0170.03217.30
5.5.310.0120.02717.48
5.5.300.0080.04316.07
5.5.290.0070.03315.96
5.5.280.0040.03017.66
5.5.270.0010.02617.47
5.5.260.0060.04217.46
5.5.250.0020.04317.38
5.5.240.0050.04617.37
5.5.230.0110.00414.36
5.5.220.0030.00914.31
5.5.210.0090.00614.36
5.5.200.0030.00913.89
5.5.190.0120.00014.04
5.5.180.0080.00314.24
5.5.170.0090.00314.41
5.5.160.0060.00914.21
5.5.150.0000.01313.80
5.5.140.0070.00714.01
5.5.130.0040.00814.34
5.5.120.0090.00614.37
5.5.110.0030.00614.02
5.5.100.0070.00614.28
5.5.90.0070.00714.27
5.5.80.0090.00614.09
5.5.70.0030.01014.24
5.5.60.0110.00314.31
5.5.50.0090.00314.28
5.5.40.0080.00314.32
5.5.30.0030.01014.39
5.5.20.0070.00714.18
5.5.10.0070.00413.98
5.5.00.0030.00914.38

preferences:
47.96 ms | 401 KiB | 5 Q