3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php abstract class PonyTown { public static function gimmeSomeLovin($relation) { echo sprintf('%s loves it', $relation) . PHP_EOL; } } $f = PonyTown::class . '::gimmeSomeLovin'; $f('Your nan'); $g = [PonyTown::class, 'gimmeSomeLovin']; $g("Ron's dad");
based on j190A

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.110.0710.00016.50
7.2.60.0030.01016.80
7.2.00.0030.00719.43
7.1.200.0070.00715.62
7.1.100.0030.00618.35
7.1.70.0000.00717.16
7.1.60.0070.01319.27
7.1.50.0030.01017.08
7.1.00.0030.07722.28
7.0.200.0510.00314.85
7.0.60.0030.08321.73
7.0.50.0100.07717.86
7.0.40.0070.05720.02
7.0.30.0270.07720.35
7.0.20.0300.05720.20
7.0.10.0030.05320.06
7.0.00.0070.04320.06
5.6.280.0070.04721.03
5.6.210.0030.06320.50
5.6.200.0170.07318.15
5.6.190.0000.06320.48
5.6.180.0200.05020.68
5.6.170.0270.06320.55
5.6.160.0130.05720.61
5.6.150.0030.07018.15
5.6.140.0100.08318.27
5.6.130.0130.07018.17
5.6.120.0030.05320.99
5.6.110.0030.05720.96
5.6.100.0130.04321.13
5.6.90.0070.08321.11
5.6.80.0130.04720.53
5.5.350.0300.07020.53
5.5.340.0070.06317.98
5.5.330.0100.03720.41
5.5.320.0300.05320.27
5.5.310.0230.07720.19
5.5.300.0000.04317.98
5.5.290.0100.03318.04
5.5.280.0100.07020.85
5.5.270.0170.06020.68
5.5.260.0200.07720.76
5.5.250.0100.08720.71
5.5.240.0000.04020.37
5.4.450.0170.06319.49
5.4.440.0230.05019.58
5.4.430.0300.06319.23
5.4.420.1030.07019.54
5.4.410.0570.06019.41
5.4.400.1070.04719.16
5.4.390.0500.06719.18
5.4.380.0400.05019.28
5.4.370.0370.06019.26
5.4.360.0300.06319.23
5.4.350.0370.07319.15
5.4.340.0230.06019.11
5.4.320.0230.07719.15
5.4.310.0300.04319.10
5.4.300.0300.05719.25
5.4.290.0300.06319.18
5.4.280.0330.06719.22
5.4.270.0130.06319.16
5.4.260.0170.05319.14
5.4.250.0400.05019.25
5.4.240.0500.05019.27
5.4.230.0230.05719.25
5.4.220.0170.05719.17
5.4.210.0170.05319.10
5.4.200.0170.05319.10
5.4.190.0070.06318.93
5.4.180.0200.06319.24
5.4.170.0170.06018.90
5.4.160.0270.05019.16
5.4.150.0300.04718.86
5.4.140.0270.05016.65
5.4.130.0300.05016.29
5.4.120.0330.03716.45
5.3.290.0200.06714.66
5.3.280.0400.05714.73
5.3.270.0300.06014.76
5.3.260.0370.06314.66
5.3.250.0270.05014.60
5.3.240.0200.05314.60
5.3.230.0200.06714.76
5.3.220.0230.05014.50