3v4l.org

run code in 300+ PHP versions simultaneously
<?php function testFunc() { print "INSIDE 1 er=" . error_reporting() . ' ini=' . intval( ini_get( 'error_reporting' ) ) . "\n"; $orig = error_reporting( 0 ); print "INSIDE 2 er=" . error_reporting() . ' ini=' . intval( ini_get( 'error_reporting' ) ) . "\n"; error_reporting( $orig ); print "INSIDE 3 er=" . error_reporting() . ' ini=' . intval( ini_get( 'error_reporting' ) ) . "\n"; } print "PRE er=" . error_reporting() . ' ini=' . intval( ini_get( 'error_reporting' ) ) . "\n"; @testFunc(); print "POST er=" . error_reporting() . ' ini=' . intval( ini_get( 'error_reporting' ) ) . "\n";

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.0150.00316.38
8.3.50.0100.01018.25
8.3.40.0070.00720.60
8.3.30.0080.00818.59
8.3.20.0030.00524.18
8.3.10.0000.00824.66
8.3.00.0040.00426.16
8.2.180.0120.00325.92
8.2.170.0110.00418.96
8.2.160.0140.00322.96
8.2.150.0080.00025.66
8.2.140.0050.00224.66
8.2.130.0050.00226.16
8.2.120.0080.00019.82
8.2.110.0080.00020.39
8.2.100.0090.00617.78
8.2.90.0060.00317.91
8.2.80.0000.00922.30
8.2.70.0060.00317.50
8.2.60.0060.00317.63
8.2.50.0050.00317.63
8.2.40.0070.00319.48
8.2.30.0080.00017.64
8.2.20.0040.00418.15
8.2.10.0000.00719.15
8.2.00.0000.00719.18
8.1.280.0110.00425.92
8.1.270.0040.00423.99
8.1.260.0090.00026.35
8.1.250.0070.00328.09
8.1.240.0030.00623.88
8.1.230.0070.00717.82
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0050.00317.22
8.1.190.0000.00817.23
8.1.180.0080.00618.10
8.1.170.0040.00417.62
8.1.160.0080.00019.10
8.1.150.0050.00218.59
8.1.140.0030.00617.46
8.1.130.0000.00718.88
8.1.120.0040.00417.55
8.1.110.0040.00417.44
8.1.100.0050.00317.51
8.1.90.0040.00417.39
8.1.80.0030.00317.50
8.1.70.0000.00717.50
8.1.60.0000.00717.45
8.1.50.0030.00617.39
8.1.40.0090.00317.41
8.1.30.0050.00517.66
8.1.20.0050.00317.73
8.1.10.0030.00917.49
8.1.00.0000.00817.39
8.0.300.0060.00320.04
8.0.290.0040.00416.63
8.0.280.0000.00718.03
8.0.270.0020.00516.75
8.0.260.0030.00318.66
8.0.250.0030.00316.99
8.0.240.0030.00316.99
8.0.230.0040.00416.98
8.0.220.0000.00716.94
8.0.210.0040.00416.81
8.0.200.0000.00716.93
8.0.190.0090.00016.90
8.0.180.0040.00416.95
8.0.170.0050.00316.93
8.0.160.0030.00316.83
8.0.150.0020.00516.85
8.0.140.0030.00616.86
8.0.130.0000.00613.35
8.0.120.0050.00316.78
8.0.110.0070.00016.94
8.0.100.0070.00016.75
8.0.90.0030.00316.79
8.0.80.0000.00716.87
8.0.70.0070.00016.70
8.0.60.0030.00316.71
8.0.50.0000.00716.93
8.0.30.0030.00316.95
8.0.20.0070.00017.04
8.0.10.0000.00716.91
8.0.00.0030.00316.93
7.4.330.0050.00015.55
7.4.320.0040.00416.63
7.4.300.0000.00616.53
7.4.290.0040.00416.47
7.4.280.0000.00716.45
7.4.270.0080.00016.52
7.4.260.0000.00513.33
7.4.250.0040.00416.50
7.4.240.0030.00316.63
7.4.230.0000.00716.51
7.4.220.0000.00616.52
7.4.210.0020.00516.42
7.4.200.0030.00316.64
7.4.190.0000.00716.71
7.4.180.0030.00316.71
7.4.160.0030.00316.77
7.4.150.0000.00716.67
7.4.140.0000.00616.60
7.4.130.0060.00016.50
7.4.120.0000.00716.65
7.4.110.0070.00016.37
7.4.100.0030.00316.46
7.4.90.0040.00416.52
7.4.80.0040.00416.44
7.4.70.0060.00016.59
7.4.60.0000.00716.59
7.4.50.0030.00316.20
7.4.40.0000.00716.45
7.4.30.0000.00716.57
7.4.20.0030.00316.55
7.4.10.0040.00416.66
7.4.00.0070.00016.61
7.3.330.0070.00416.25
7.3.320.0030.00313.27
7.3.310.0000.00716.29
7.3.300.0030.00316.12
7.3.290.0030.00316.25
7.3.280.0040.00416.13
7.3.270.0040.00416.12
7.3.260.0000.00616.08
7.3.250.0030.00316.21
7.3.240.0030.00316.13
7.3.230.0060.00016.21
7.3.220.0000.00716.26
7.3.210.0000.00716.29
7.3.200.0070.00016.21
7.3.190.0000.00616.13
7.3.180.0060.00016.17
7.3.170.0040.00416.30
7.3.160.0000.00916.16
7.3.150.0000.00916.26
7.3.140.0040.00416.26
7.3.130.0030.00316.13
7.3.120.0030.00316.16
7.3.110.0000.00616.18
7.3.100.0030.00316.13
7.3.90.0000.00716.46
7.3.80.0000.00716.02
7.3.70.0000.00816.27
7.3.60.0000.00616.47
7.3.50.0060.00016.31
7.3.40.0030.00316.32
7.3.30.0030.00316.27
7.3.20.0040.00418.24
7.3.10.0060.00318.09
7.3.00.0000.00718.20

preferences:
34.71 ms | 400 KiB | 5 Q