3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo PHP_VERSION_ID, PHP_EOL; echo PHP_MINOR_VERSION, PHP_EOL; echo PHP_VERSION_ID - PHP_PATCH_VERSION, PHP_EOL;
based on jCVdv

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.2.60.0060.00916.76
7.2.00.0000.01219.30
7.1.200.0070.00315.85
7.1.100.0000.01218.10
7.1.70.0040.00417.04
7.1.60.0070.00719.48
7.1.50.0060.01316.93
7.1.00.0000.07722.57
7.0.200.0000.00716.41
7.0.60.0000.04319.95
7.0.50.0100.07017.88
7.0.40.0100.07319.99
7.0.30.0170.04720.21
7.0.20.0400.07020.30
7.0.10.0100.08320.33
7.0.00.0070.08720.20
5.6.280.0000.07721.09
5.6.210.0070.08320.74
5.6.200.0030.08718.18
5.6.190.0100.08320.57
5.6.180.0430.03320.57
5.6.170.0200.05720.39
5.6.160.0070.05020.42
5.6.150.0030.07018.12
5.6.140.0070.08318.18
5.6.130.0070.04018.17
5.6.120.0030.05721.14
5.6.110.0070.07021.13
5.6.100.0030.08721.08
5.6.90.0070.09021.11
5.6.80.0130.07720.48
5.5.350.3800.03720.43
5.5.340.0030.09017.98
5.5.330.0030.08020.20
5.5.320.0170.04020.13
5.5.310.0130.04720.30
5.5.300.0170.06317.91
5.5.290.0070.06318.01
5.5.280.0300.06020.68
5.5.270.0100.08320.78
5.5.260.0100.04320.83
5.5.250.0000.04320.68
5.5.240.0100.03320.25
5.4.450.0600.06319.41
5.4.440.0400.06319.27
5.4.430.0530.04719.44
5.4.420.0430.06019.63
5.4.410.0600.04719.33
5.4.400.0570.04019.23
5.4.390.0200.04718.79
5.4.380.0500.05719.31
5.4.370.0430.06018.80
5.4.360.0400.06019.31
5.4.350.0530.05719.21
5.4.340.0600.04719.15
5.4.320.0400.06019.30
5.4.310.0670.03719.16
5.4.300.0500.05019.29
5.4.290.0430.05319.22
5.4.280.0400.06019.08
5.4.270.0430.05319.21
5.4.260.0470.05018.94
5.4.250.0470.05019.21
5.4.240.0570.04318.93
5.4.230.0470.05318.98
5.4.220.0630.04719.21
5.4.210.0530.05019.14
5.4.200.0500.04718.95
5.4.190.0500.05719.11
5.4.180.0500.05019.29
5.4.170.0530.04719.13
5.4.160.0400.05718.77
5.4.150.0630.05318.92
5.4.140.0400.05316.47
5.4.130.0500.04316.51
5.4.120.0500.04316.42
5.4.110.0400.05316.36
5.4.100.0570.04016.46
5.4.90.0470.05016.45
5.3.290.0530.05314.61
5.3.280.0470.05014.61
5.3.270.0530.05714.55
5.3.260.0600.05014.55
5.3.250.0630.06714.44
5.3.240.0470.04714.62
5.3.230.0470.05014.62
5.3.220.0600.05014.46
5.3.210.0470.05014.52
5.3.200.0530.05014.53
5.3.190.0570.06314.44