3v4l.org

run code in 300+ PHP versions simultaneously
<?php $cases = [ '', __FILE__, '/etc/hosts' ]; foreach ($cases as $file) { $time = microtime(); for($i=0; $i < 10000; $i++) { false === stream_resolve_include_path(''); } echo "($file), stream_resolve_include_path(): ".(microtime() - $time).PHP_EOL; $time = microtime(); for($i=0; $i < 10000; $i++) { false === file_exists(''); } echo "($file), file_exists(): ". (microtime() - $time).PHP_EOL; }

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)
7.3.10.0170.02415.96
7.3.00.0350.02816.09
7.2.130.0290.02616.44
7.2.120.0420.01116.85
7.2.110.0240.02716.48
7.2.100.0240.03116.25
7.2.90.0260.02816.57
7.2.80.0370.02016.59
7.2.70.0410.02316.89
7.2.60.0240.03116.77
7.2.50.0300.03416.36
7.2.40.0330.02016.77
7.2.30.0300.03016.48
7.2.20.0240.03516.31
7.2.10.0360.02316.60
7.2.00.0260.02118.11
7.1.250.0270.02315.46
7.1.70.0070.01416.92
7.1.60.0210.01419.17
7.1.50.0360.02917.11
7.1.00.0200.06322.46
7.0.200.0410.01716.85
7.0.140.0270.07721.92
7.0.100.0200.05720.09
7.0.90.0200.04319.98
7.0.80.0230.05020.02
7.0.70.0230.05319.97
7.0.60.0200.04319.96
7.0.50.0230.05720.29
7.0.40.0170.04319.90
7.0.30.0100.07320.09
7.0.20.0070.05719.89
7.0.10.0130.05319.94
7.0.00.0270.08320.13
5.6.280.0200.09321.08
5.6.250.0100.05720.75
5.6.240.0170.05020.53
5.6.230.0230.04720.55
5.6.220.0100.06020.46
5.6.210.0200.04720.67
5.6.200.0130.05321.06
5.6.190.0170.07021.16
5.6.180.0230.04321.03
5.6.170.0170.06721.10
5.6.160.0170.12021.04
5.6.150.0270.09021.01
5.6.140.0270.07321.05
5.6.130.0100.06321.13
5.6.120.0270.10321.07
5.6.110.0230.08720.92
5.6.100.0200.08021.08
5.6.90.0130.08321.09
5.6.80.0330.09020.52
5.6.70.0170.12720.42
5.6.60.0230.09320.32
5.6.50.0300.08720.41
5.6.40.0230.09020.46
5.6.30.0300.08320.39
5.6.20.0300.05720.30
5.6.10.0330.08020.36
5.6.00.0300.05020.45
5.5.380.0270.04020.37
5.5.370.0070.06320.49
5.5.360.0100.06020.40
5.5.350.0130.05320.40
5.5.340.0170.05020.86
5.5.330.0230.05020.76
5.5.320.0130.06320.89
5.5.310.0300.08720.73
5.5.300.0200.06320.82
5.5.290.0370.08020.79
5.5.280.0370.07320.88
5.5.270.0170.10020.72
5.5.260.0270.08320.71
5.5.250.0200.09020.57
5.5.240.0270.09720.24
5.5.230.0200.08720.17
5.5.220.0200.10320.01
5.5.210.0170.06320.20
5.5.200.0130.05320.22
5.5.190.0270.08320.22
5.5.180.0200.08720.23
5.5.160.0270.10320.14
5.5.150.0070.09319.98
5.5.140.0300.08020.19
5.5.130.0170.07020.14
5.5.120.0230.06020.12
5.5.110.0170.10020.20
5.5.100.0300.07720.06
5.5.90.0170.09720.11
5.5.80.0270.09320.15
5.5.70.0230.08719.91
5.5.60.0170.06320.14
5.5.50.0370.08020.13
5.5.40.0270.09020.15
5.5.30.0170.05719.95
5.5.20.0100.10719.95
5.5.10.0270.08720.02
5.5.00.0230.09319.99
5.4.450.0100.09019.46
5.4.440.0170.09719.23
5.4.430.0170.08719.44
5.4.420.0130.09719.42
5.4.410.0200.10319.33
5.4.400.0170.08319.00
5.4.390.0170.09319.04
5.4.380.0200.08319.04
5.4.370.0170.08319.07
5.4.360.0230.07019.13
5.4.350.0200.07719.12
5.4.340.0130.05718.93
5.4.320.0130.09319.14
5.4.310.0330.08019.23
5.4.300.0170.08019.14
5.4.290.0100.09318.91
5.4.280.0270.07018.82
5.4.270.0170.10719.05
5.4.260.0130.10319.03
5.4.250.0370.07318.94
5.4.240.0270.09319.03
5.4.230.0230.09719.04
5.4.220.0230.06318.98
5.4.210.0200.06019.06
5.4.200.0330.07319.07
5.4.190.0270.05018.98
5.4.180.0100.05319.04
5.4.170.0200.06319.14
5.4.160.0270.08319.07
5.4.150.0200.07318.93
5.4.140.0130.09016.34
5.4.130.0270.08016.29
5.4.120.0230.08716.34
5.4.110.0000.11316.45
5.4.100.0170.05716.34
5.4.90.0370.06316.44
5.4.80.0230.09016.33
5.4.70.0230.09716.42
5.4.60.0200.09316.31
5.4.50.0270.08316.38
5.4.40.0330.07716.30
5.4.30.0270.08716.42
5.4.20.0230.07316.18
5.4.10.0200.08016.23
5.4.00.0130.06015.86
5.3.290.0030.06014.66
5.3.280.0130.07314.56
5.3.270.0130.06714.46
5.3.260.0030.04714.46
5.3.250.0130.03314.46
5.3.240.0130.07314.50
5.3.230.0070.07714.56
5.3.220.0070.07014.41
5.3.210.0100.04014.56
5.3.200.0070.07714.54
5.3.190.0030.08014.54
5.3.180.0170.06014.56
5.3.170.0070.07014.54
5.3.160.0070.08014.56
5.3.150.0000.04714.48
5.3.140.0070.07314.51
5.3.130.0100.06014.52
5.3.120.0070.08314.41
5.3.110.0130.06714.36
5.3.100.0100.06014.05
5.3.90.0100.07013.88
5.3.80.0070.04714.00
5.3.70.0100.03714.02
5.3.60.0070.06713.95
5.3.50.0070.07313.72
5.3.40.0030.06013.93
5.3.30.0030.05713.90
5.3.20.0070.07013.46
5.3.10.0030.05013.51
5.3.00.0100.06713.48
5.2.170.0070.05711.12
5.2.160.0100.05711.09
5.2.150.0070.06011.17
5.2.140.0070.04710.96
5.2.130.0070.06311.12
5.2.120.0070.05711.09
5.2.110.0070.06011.14
5.2.100.0070.05711.14
5.2.90.0030.06710.94
5.2.80.0030.06311.11
5.2.70.0030.05011.07
5.2.60.0100.03710.91
5.2.50.0070.03011.06
5.2.40.0070.06010.98
5.2.30.0030.06310.96
5.2.20.0170.04310.95
5.2.10.0100.03710.86
5.2.00.0030.06010.76
5.1.60.0030.05310.00
5.1.50.0070.04710.05
5.1.40.0030.0379.96
5.1.30.0070.04710.20
5.1.20.0070.05710.26
5.1.10.0100.04710.09
5.1.00.0030.03310.06
5.0.50.0000.0238.85
5.0.40.0000.0278.85
5.0.30.0030.0678.85
5.0.20.0030.0438.85
5.0.10.0070.0378.85
5.0.00.0000.0408.85
4.4.90.0070.0278.85
4.4.80.0000.0208.85
4.4.70.0030.0178.85
4.4.60.0030.0308.85
4.4.50.0030.0338.85
4.4.40.0100.0308.85
4.4.30.0100.0238.85
4.4.20.0030.0378.85
4.4.10.0000.0338.85
4.4.00.0030.0438.85
4.3.110.0030.0438.85
4.3.100.0000.0238.85
4.3.90.0030.0338.85
4.3.80.0070.0208.85
4.3.70.0000.0378.85
4.3.60.0000.0378.85
4.3.50.0000.0378.85
4.3.40.0100.0438.85
4.3.30.0000.0308.85
4.3.20.0070.0308.85
4.3.10.0000.0278.85
4.3.00.0030.0338.85

preferences:
52.79 ms | 401 KiB | 5 Q