3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $class = 'Symfony\Bundle\FrameworkBundle\DependencyInjection\Configuration'; $prefix = 'Twig_'; for ($i = 0; $i < 1000000; ++$i) { if (0 === strpos($class, $prefix)) {} }

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).
Note: hhvm uses a JIT which only kicks in after a few runs. Since we run scripts only once, hhvm always runs slower.

VersionSystem time (s)User time (s)Memory (MiB)
7.3.0rc40.0160.04998.97
7.3.0rc30.0190.04516.27
7.2.00.0030.05819.22
7.1.100.0070.05117.94
7.1.70.0000.04217.14
7.1.60.0070.07919.70
7.1.50.0070.04617.03
7.1.00.0070.12722.54
7.0.200.0030.03816.88
7.0.140.0070.13322.09
7.0.70.0070.12721.68
7.0.60.0070.07021.75
7.0.50.0000.09722.04
7.0.40.0030.07020.05
7.0.30.0100.10320.10
7.0.20.0100.12720.11
7.0.10.0070.11020.04
7.0.00.0030.12020.02
5.6.280.0100.21720.92
5.6.220.0070.20320.51
5.6.210.0030.21320.62
5.6.200.0030.20021.17
5.6.190.0030.20721.06
5.6.180.0030.22721.13
5.6.170.0100.21721.00
5.6.160.0230.21021.10
5.6.150.0100.18721.12
5.6.140.0070.19721.10
5.6.130.0000.22321.08
5.6.120.0070.20720.95
5.6.110.0070.17320.94
5.6.100.0030.16020.93
5.6.90.0070.21020.93
5.6.80.0030.19320.48
5.6.70.0100.17720.38
5.6.60.0030.20320.25
5.6.50.0100.18320.35
5.6.40.0070.17020.40
5.6.30.0000.19720.35
5.6.20.0030.14020.37
5.6.10.0030.17720.43
5.6.00.0070.20720.29
5.5.360.0000.21320.35
5.5.350.0030.15720.36
5.5.340.0100.14320.77
5.5.330.0030.19320.83
5.5.320.0170.21320.88
5.5.310.0070.22020.82
5.5.300.0030.19320.79
5.5.290.0000.23020.83
5.5.280.0130.23020.92
5.5.270.0030.21720.63
5.5.260.0070.15020.87
5.5.250.0000.17720.59
5.5.240.0030.22320.02
5.5.230.0070.21020.21
5.5.220.0000.15720.25
5.5.210.0030.21720.27
5.5.200.0030.15319.99
5.5.190.0030.17320.08
5.5.180.0100.20320.25
5.5.160.0030.15320.22
5.5.150.0070.22320.24
5.5.140.0270.20320.12
5.5.130.0070.23020.21
5.5.120.0030.23020.21
5.5.110.0000.20720.22
5.5.100.0030.23320.11
5.5.90.0030.20720.09
5.5.80.0030.21020.12
5.5.70.0030.21720.07
5.5.60.0070.20720.10
5.5.50.0100.21020.04
5.5.40.0000.15020.05
5.5.30.0100.22020.02
5.5.20.0100.22720.04
5.5.10.0030.16019.97
5.5.00.0070.21720.02
5.4.450.0100.21019.45
5.4.440.0030.22019.11
5.4.430.0000.16719.44
5.4.420.0030.16019.56
5.4.410.0030.18319.10
5.4.400.0070.17318.79
5.4.390.0100.21019.23
5.4.380.0000.22318.78
5.4.370.0100.20719.12
5.4.360.0030.17018.81
5.4.350.0000.17718.98
5.4.340.0070.21019.03
5.4.320.0070.19019.07
5.4.310.0000.21318.90
5.4.300.0070.19319.03
5.4.290.0000.20719.02
5.4.280.0000.22718.91
5.4.270.0070.20019.07
5.4.260.0030.21019.02
5.4.250.0000.14319.11
5.4.240.0030.21718.80
5.4.230.0030.16019.02
5.4.220.0000.22718.78
5.4.210.0030.15018.99
5.4.200.0030.14319.05
5.4.190.0000.18318.96
5.4.180.0100.15719.02
5.4.170.0100.19019.10
5.4.160.0000.21318.78
5.4.150.0030.21719.20
5.4.140.0000.18316.38
5.4.130.0000.21016.41
5.4.120.0030.21016.27
5.4.110.0030.22716.44
5.4.100.0070.21716.26
5.4.90.0100.18016.33
5.4.80.0030.21716.31
5.4.70.0000.15316.47
5.4.60.0030.18716.42
5.4.50.0000.14316.18
5.4.40.0000.18016.43
5.4.30.0100.19716.20
5.4.20.0030.22316.22
5.4.10.0100.22016.33
5.4.00.0000.19015.82
5.3.290.0030.18014.52
5.3.280.0030.21014.55
5.3.270.0030.25714.51
5.3.260.0100.20714.59
5.3.250.0000.18314.56
5.3.240.0030.22314.59
5.3.230.0030.24014.45
5.3.220.0000.20014.51
5.3.210.0030.23314.51
5.3.200.0000.20714.52
5.3.190.0000.25314.54
5.3.180.0070.24014.55
5.3.170.0000.24314.38
5.3.160.0030.25314.38
5.3.150.0000.22714.55
5.3.140.0000.25014.51
5.3.130.0030.17014.40
5.3.120.0000.24714.54
5.3.110.0000.23014.40
5.3.100.0030.24013.98
5.3.90.0030.18013.88
5.3.80.0000.23314.01
5.3.70.0070.24013.97
5.3.60.0030.24714.00
5.3.50.0030.21713.90
5.3.40.0000.19013.85
5.3.30.0000.23313.89
5.3.20.0070.24013.55
5.3.10.0000.23713.63
5.3.00.0030.22013.63
5.2.170.0000.18312.21
5.2.160.0070.23312.21
5.2.150.0000.15712.21
5.2.140.0000.18712.21
5.2.130.0030.22012.21
5.2.120.0030.21712.21
5.2.110.0000.22712.21
5.2.100.0030.24712.21
5.2.90.0030.19712.21
5.2.80.0000.26012.21
5.2.70.0030.22012.21
5.2.60.0000.20712.21
5.2.50.0000.16012.21
5.2.40.0000.23012.21
5.2.30.0030.23712.21
5.2.20.0000.16012.21
5.2.10.0030.22712.21
5.2.00.0070.23012.21
5.1.60.0030.20012.21
5.1.50.0030.19312.21
5.1.40.0030.14012.21
5.1.30.0000.23712.21
5.1.20.0030.14312.21
5.1.10.0100.22312.21
5.1.00.0070.21312.21
5.0.50.0000.25712.21
5.0.40.0000.36012.21
5.0.30.0030.25312.21
5.0.20.0030.25012.21
5.0.10.0000.33312.21
5.0.00.0030.32712.21
4.4.90.0000.31312.21
4.4.80.0030.32012.21
4.4.70.0000.32312.21
4.4.60.0030.33012.21
4.4.50.0000.32012.21
4.4.40.0000.27312.21
4.4.30.0000.30712.21
4.4.20.0000.32012.21
4.4.10.0000.30712.21
4.4.00.0030.33312.21
4.3.110.0030.30012.21
4.3.100.0000.31712.21
4.3.90.0030.31312.21
4.3.80.0030.31012.21
4.3.70.0000.32712.21
4.3.60.0000.30712.21
4.3.50.0030.29012.21
4.3.40.0000.28712.21
4.3.30.0030.29312.21
4.3.20.0030.29012.21
4.3.10.0030.31012.21
4.3.00.0070.23012.21