3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i = 0; $start = microtime(true); for ($i=0; $i < 1000000; ++$i) { if (false) {} } $end = microtime(true); echo 'if(false): ' . sprintf('%f', $end - $start) . PHP_EOL; $start = microtime(true); for ($i=0; $i < 1000000; ++$i) { if (null) {} } $end = microtime(true); echo 'if(null): ' . sprintf('%f', $end - $start) . 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.2.00.0070.02319.54
7.1.70.0030.02917.22
7.1.60.0070.04619.70
7.1.50.0100.05016.91
7.1.00.0070.09722.32
7.0.200.0220.01515.05
7.0.140.0100.09022.08
7.0.60.0300.10019.80
7.0.50.0130.06017.88
7.0.40.0330.08720.31
7.0.30.0270.06019.99
7.0.20.0370.09720.04
7.0.10.0300.09720.40
7.0.00.0200.06020.10
5.6.280.0130.12320.99
5.6.210.0100.11020.71
5.6.200.0070.08018.12
5.6.190.0370.12720.63
5.6.180.0400.12020.41
5.6.170.0330.13020.33
5.6.160.0330.09320.48
5.6.150.0170.11320.46
5.6.140.0270.09320.43
5.6.130.0300.11020.40
5.6.120.0400.12720.32
5.6.110.0400.11320.42
5.6.100.0270.09020.16
5.6.90.0230.14020.31
5.6.80.0370.13319.68
5.6.70.0270.13319.84
5.6.60.0330.13719.84
5.6.50.0300.09719.76
5.6.40.0300.13019.70
5.6.30.0270.12719.79
5.6.20.0270.13319.80
5.6.10.0270.09319.63
5.6.00.0270.12319.69
5.5.350.0100.06720.32
5.5.340.0070.08017.95
5.5.330.0230.08720.43
5.5.320.0270.14020.41
5.5.310.0300.13720.26
5.5.300.0300.12020.13
5.5.290.0300.09720.13
5.5.280.0270.09019.98
5.5.270.0400.12020.19
5.5.260.0330.14020.25
5.5.250.0400.13020.01
5.5.240.0230.08719.30
5.5.230.0300.13319.49
5.5.220.0300.10719.61
5.5.210.0300.10019.58
5.5.200.0270.14019.32
5.5.190.0300.13019.47
5.5.180.0470.11719.43
5.5.160.0230.12719.59
5.5.150.0230.08319.25
5.5.140.0300.13019.63
5.5.130.0270.14019.52
5.5.120.0300.13319.25
5.5.110.0330.11719.44
5.5.100.0370.12019.52
5.5.90.0370.12319.16
5.5.80.0370.12019.42
5.5.70.0300.10019.37
5.5.60.0370.12019.15
5.5.50.0330.12719.38
5.5.40.0300.09719.46
5.5.30.0370.10719.42
5.5.20.0370.11019.46
5.5.10.0300.10019.42
5.5.00.0270.09719.13
5.4.450.0330.10019.33
5.4.440.0330.11019.50
5.4.430.0370.13019.20
5.4.420.0370.13319.13
5.4.410.0200.08719.38
5.4.400.0330.12719.15
5.4.390.0270.08019.12
5.4.380.0300.10719.14
5.4.370.0230.08319.18
5.4.360.0370.12019.07
5.4.350.0400.11319.18
5.4.340.0370.11719.16
5.4.320.0300.12019.12
5.4.310.0270.09319.14
5.4.300.0200.08719.09
5.4.290.0330.12719.15
5.4.280.0230.10319.18
5.4.270.0300.13719.14
5.4.260.0270.10719.07
5.4.250.0400.11719.18
5.4.240.0330.12318.79
5.4.230.0330.12719.08
5.4.220.0330.12718.79
5.4.210.0330.12319.16
5.4.200.0370.10019.18
5.4.190.0270.11719.07
5.4.180.0300.12719.01
5.4.170.0400.11718.91
5.4.160.0400.10318.90
5.4.150.0330.10719.06
5.4.140.0300.13016.35
5.4.130.0300.10716.32
5.4.120.0330.11716.35
5.4.110.0370.10316.27
5.4.100.0370.12316.31
5.4.90.0270.13716.23
5.4.80.0270.09316.29
5.4.70.0230.08716.23
5.4.60.0270.13716.21
5.4.50.0400.09316.58
5.4.40.0270.11016.24
5.4.30.0330.09016.14
5.4.20.0230.12016.36
5.4.10.0270.13316.37
5.4.00.0330.12015.78
5.3.290.0370.11014.61
5.3.280.0300.12714.52
5.3.270.0230.13314.43
5.3.260.0270.14314.57
5.3.250.0330.13314.50
5.3.240.0300.13014.53
5.3.230.0270.13314.42
5.3.220.0270.09314.46
5.3.210.0270.09014.44
5.3.200.0370.14014.35
5.3.190.0330.08714.50
5.3.180.0430.12314.49
5.3.170.0400.13714.65
5.3.160.0370.11014.65
5.3.150.0300.09014.57
5.3.140.0330.13314.45
5.3.130.0330.13314.42
5.3.120.0300.10314.38
5.3.110.0270.14714.48
5.3.100.0400.13313.94
5.3.90.0430.12713.91
5.3.80.0370.14013.95
5.3.70.0300.11713.94
5.3.60.0270.08713.84
5.3.50.0300.11713.96
5.3.40.0270.10713.92
5.3.30.0300.14313.83
5.3.20.0400.13313.63
5.3.10.0200.11013.62
5.3.00.0270.08013.56
5.2.170.0270.16012.57
5.2.160.0200.13012.57
5.2.150.0200.14712.57
5.2.140.0270.13712.57
5.2.130.0230.10312.57
5.2.120.0170.11712.57
5.2.110.0200.10312.57
5.2.100.0170.09312.57
5.2.90.0170.10012.57
5.2.80.0270.10712.57
5.2.70.0170.10312.57
5.2.60.0130.09712.57
5.2.50.0130.10012.57
5.2.40.0100.10012.57
5.2.30.0130.15712.57
5.2.20.0270.14012.57
5.2.10.0130.09312.57
5.2.00.0170.10012.57
5.1.60.0170.08712.57
5.1.50.0100.09712.57
5.1.40.0100.10712.57
5.1.30.0200.09712.57
5.1.20.0200.12012.57
5.1.10.0100.13312.57
5.1.00.0100.15312.57
5.0.50.0070.24312.57
5.0.40.0100.28712.57
5.0.30.0100.28712.57
5.0.20.0170.27012.57
5.0.10.0130.27312.57
5.0.00.0070.22712.57
4.4.90.0100.19712.57
4.4.80.0070.22712.57
4.4.70.0030.21012.57
4.4.60.0030.20712.57
4.4.50.0100.20712.57
4.4.40.0130.21012.57
4.4.30.0030.20312.57
4.4.20.0070.20312.57
4.4.10.0100.26312.57
4.4.00.0070.24012.57
4.3.110.0070.21012.57
4.3.100.0170.25312.57
4.3.90.0100.25312.57
4.3.80.0130.26312.57
4.3.70.0100.27012.57
4.3.60.0130.25312.57
4.3.50.0200.26012.57
4.3.40.0130.22012.57
4.3.30.0070.26712.57
4.3.20.0030.26012.57
4.3.10.0070.25712.57
4.3.00.0030.27012.57

preferences:
41.58 ms | 400 KiB | 5 Q