3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL); class asd { function __construct() { 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.0100.01016.74
8.3.50.0110.00821.10
8.3.40.0070.00718.98
8.3.30.0090.00918.89
8.3.20.0040.00420.43
8.3.10.0140.00423.67
8.3.00.0070.00723.73
8.2.180.0110.01116.38
8.2.170.0090.00622.96
8.2.160.0070.00720.48
8.2.150.0000.00824.18
8.2.140.0090.00924.66
8.2.130.0080.00021.00
8.2.120.0000.00826.35
8.2.110.0060.00319.21
8.2.100.0110.00018.03
8.2.90.0030.00519.05
8.2.80.0050.00317.97
8.2.70.0040.00417.50
8.2.60.0050.00318.04
8.2.50.0040.00418.10
8.2.40.0030.00520.68
8.2.30.0070.00020.57
8.2.20.0020.00517.57
8.2.10.0030.00618.07
8.2.00.0000.00718.04
8.1.280.0140.00425.92
8.1.270.0030.00623.92
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0060.00322.45
8.1.230.0090.00317.42
8.1.220.0030.00517.74
8.1.210.0030.00618.77
8.1.200.0000.01017.23
8.1.190.0000.00817.23
8.1.180.0040.00418.10
8.1.170.0100.00318.66
8.1.160.0040.00422.06
8.1.150.0030.00318.80
8.1.140.0000.00819.58
8.1.130.0050.00317.59
8.1.120.0070.00017.50
8.1.110.0000.00817.36
8.1.100.0000.00817.38
8.1.90.0030.00517.45
8.1.80.0040.00417.38
8.1.70.0000.00717.47
8.1.60.0000.00817.63
8.1.50.0080.00017.48
8.1.40.0000.00817.45
8.1.30.0000.00817.59
8.1.20.0000.00817.54
8.1.10.0040.00417.50
8.1.00.0000.00817.50
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0040.00418.52
8.0.270.0000.00717.27
8.0.260.0000.00717.26
8.0.250.0050.00216.93
8.0.240.0040.00416.87
8.0.230.0030.00317.04
8.0.220.0000.00816.92
8.0.210.0030.00316.95
8.0.200.0060.00016.98
8.0.190.0000.00717.06
8.0.180.0040.00416.88
8.0.170.0030.00616.88
8.0.160.0040.00416.86
8.0.150.0040.00416.89
8.0.140.0070.00416.85
8.0.130.0000.00513.38
8.0.120.0000.00816.98
8.0.110.0000.00717.02
8.0.100.0080.00016.85
8.0.90.0040.00416.96
8.0.80.0090.00616.93
8.0.70.0040.00416.92
8.0.60.0040.00417.02
8.0.50.0020.00516.76
8.0.30.0100.00617.01
8.0.20.0110.00917.41
8.0.10.0060.00316.92
8.0.00.0110.00916.85
7.4.330.0030.00316.95
7.4.320.0030.00316.60
7.4.300.0000.00716.49
7.4.290.0000.00616.65
7.4.280.0040.00416.39
7.4.270.0050.00316.54
7.4.260.0000.00716.50
7.4.250.0050.00316.52
7.4.240.0060.00216.51
7.4.230.0000.00716.49
7.4.220.0080.01916.63
7.4.210.0110.00316.58
7.4.200.0000.00716.55
7.4.160.0150.00016.39
7.4.150.0190.00817.40
7.4.140.0120.01517.86
7.4.130.0070.00916.60
7.4.120.0130.00716.54
7.4.110.0130.00316.46
7.4.100.0100.00716.36
7.4.90.0100.00716.60
7.4.80.0070.01019.39
7.4.70.0040.01616.38
7.4.60.0130.00916.66
7.4.50.0110.00316.57
7.4.40.0060.01116.26
7.4.30.0130.01016.53
7.4.10.0130.00614.69
7.4.00.0070.01015.08
7.3.330.0060.00013.30
7.3.320.0000.00613.07
7.3.310.0030.00316.35
7.3.300.0000.00616.30
7.3.290.0030.00316.27
7.3.280.0080.01016.31
7.3.270.0150.00317.40
7.3.260.0100.01316.39
7.3.250.0120.00616.35
7.3.240.0110.00916.59
7.3.230.0090.00916.60
7.3.210.0080.00916.38
7.3.200.0100.00716.49
7.3.190.0030.01216.35
7.3.180.0100.01016.29
7.3.170.0090.00916.27
7.3.160.0120.00316.32
7.3.130.0040.01114.75
7.3.120.0060.01215.02
7.3.110.0090.00915.09
7.3.100.0070.01014.79
7.3.90.0060.00914.86
7.3.80.0070.00414.77
7.3.70.0100.00614.88
7.3.60.0070.00714.61
7.3.50.0000.01614.75
7.3.40.0000.01414.64
7.3.30.0000.00914.70
7.3.20.0100.00716.55
7.3.10.0040.01216.76
7.3.00.0060.00916.69
7.2.330.0120.00616.68
7.2.320.0080.01116.80
7.2.310.0060.01616.38
7.2.300.0070.01416.74
7.2.290.0120.01216.73
7.2.260.0090.00314.80
7.2.250.0060.01515.25
7.2.240.0030.01215.20
7.2.230.0060.00915.03
7.2.220.0120.00615.23
7.2.210.0000.01315.27
7.2.200.0070.00715.07
7.2.190.0040.01515.19
7.2.180.0040.01114.98
7.2.170.0060.00615.11
7.2.160.0070.00715.04
7.2.150.0040.01417.00
7.2.140.0070.01016.99
7.2.130.0070.01316.76
7.2.120.0000.01416.78
7.2.110.0100.00716.89
7.2.100.0040.01517.04
7.2.90.0070.00316.81
7.2.80.0070.00717.00
7.2.70.0000.01516.79
7.2.60.0050.01016.84
7.2.50.0140.00317.06
7.2.40.0060.00316.96
7.2.30.0120.00316.83
7.2.20.0030.00916.88
7.2.10.0030.01017.10
7.2.00.0040.00717.00
7.1.330.0030.00615.48
7.1.320.0100.00715.91
7.1.310.0060.00915.82
7.1.300.0130.00015.63
7.1.290.0040.01115.65
7.1.280.0090.00615.77
7.1.270.0090.00615.45
7.1.260.0070.01015.77
7.1.250.0150.00015.75
7.1.240.0090.00615.77
7.1.230.0030.00615.66
7.1.220.0090.00615.82
7.1.210.0100.00315.86
7.1.200.0070.00715.75
7.1.190.0000.01515.74
7.1.180.0030.01015.72
7.1.170.0000.01315.71
7.1.160.0070.00715.62
7.1.150.0070.00715.79
7.1.140.0030.00715.59
7.1.130.0080.00315.85
7.1.120.0080.00015.87
7.1.110.0100.00315.81
7.1.100.0080.00917.01
7.1.90.0090.00915.79
7.1.80.0040.01115.68
7.1.70.0060.00316.44
7.1.60.0040.00916.37
7.1.50.0070.00516.16
7.1.40.0020.01116.17
7.1.30.0050.00916.09
7.1.20.0060.00516.15
7.1.10.0030.00915.99
7.1.00.0020.00716.10
7.0.330.0070.00715.27
7.0.320.0060.00315.45
7.0.310.0100.00315.25
7.0.300.0080.00415.36
7.0.290.0040.01115.36
7.0.280.0050.00315.43
7.0.270.0040.00415.48
7.0.260.0100.00315.36
7.0.250.0030.00915.27
7.0.240.0090.00615.55
7.0.230.0000.01815.22
7.0.220.0030.00915.43
7.0.210.0030.01215.18
7.0.200.0040.00615.92
7.0.190.0050.00815.89
7.0.180.0060.00715.75
7.0.170.0070.00715.92
7.0.160.0040.00715.79
7.0.150.0070.00415.86
7.0.140.0030.00515.95
7.0.130.0050.00416.01
7.0.120.0050.00615.90
7.0.110.0020.00815.84
7.0.100.0040.00615.80
7.0.90.0000.01115.86
7.0.80.0060.00616.03
7.0.70.0040.00615.88
7.0.60.0070.00415.59
7.0.50.0050.00715.75
7.0.40.0030.00514.19
7.0.30.0020.00914.24
7.0.20.0060.00214.17
7.0.10.0040.00714.23
7.0.00.0020.00714.21
5.6.400.0150.00014.20
5.6.390.0000.01414.54
5.6.380.0000.01014.60
5.6.370.0000.01514.02
5.6.360.0030.00614.20
5.6.350.0040.01114.24
5.6.340.0080.00814.36
5.6.330.0030.00714.61
5.6.320.0070.00714.42
5.6.310.0100.00314.71
5.6.300.0050.02917.52
5.6.290.0040.02717.68
5.6.280.0100.01917.63
5.6.270.0100.02117.46
5.6.260.0050.02617.72
5.6.250.0080.02017.54
5.6.240.0050.03017.49
5.6.230.0080.03017.59
5.6.220.0080.02317.54
5.6.210.0070.02317.42
5.6.200.0050.02817.73
5.6.190.0060.02717.78
5.6.180.0190.02817.69
5.6.170.0150.02217.56
5.6.160.0050.02717.59
5.6.150.0080.02717.65
5.6.140.0050.02417.42
5.6.130.0030.02617.67
5.6.120.0070.02817.80
5.6.110.0110.02717.56
5.6.100.0050.02517.70
5.6.90.0050.02917.59
5.6.80.0070.02317.22
5.6.70.0120.01917.34
5.6.60.0050.02817.51
5.6.50.0050.02417.28
5.6.40.0050.02417.17
5.6.30.0050.02717.16
5.6.20.0070.02817.12
5.6.10.0060.02217.38
5.6.00.0050.02217.30
5.5.380.0030.02515.81
5.5.370.0030.02615.77
5.5.360.0060.02415.88
5.5.350.0060.03416.01
5.5.340.0090.02416.08
5.5.330.0050.02516.14
5.5.320.0090.02015.82
5.5.310.0060.02116.26
5.5.300.0080.02516.15
5.5.290.0080.02416.11
5.5.280.0060.02216.13
5.5.270.0080.02916.32
5.5.260.0020.02816.11
5.5.250.0030.03215.91
5.5.240.0110.02415.85
5.5.230.0050.02515.92
5.5.220.0050.02415.82
5.5.210.0060.02415.83
5.5.200.0020.03115.86
5.5.190.0080.02215.72
5.5.180.0070.02015.86
5.5.170.0060.00314.30
5.5.160.0060.02415.70
5.5.150.0020.02515.74
5.5.140.0030.02215.74
5.5.130.0050.02415.76
5.5.120.0080.04115.67
5.5.110.0100.01915.74
5.5.100.0070.03015.65
5.5.90.0050.02415.86
5.5.80.0110.02115.86
5.5.70.0050.02215.70
5.5.60.0020.02615.67
5.5.50.0070.02115.65
5.5.40.0150.01715.69
5.5.30.0040.02315.77
5.5.20.0030.02415.67
5.5.10.0050.02415.61
5.5.00.0080.01915.81

preferences:
71.42 ms | 401 KiB | 5 Q