3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function one($name, $callback) { var_export(is_callable($callback)); if (is_callable($callback)) { $callback(strrev($name)); } } one('Chandra', function ($result) { echo $result; });
based on m79E3

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.10.0070.00716.62
7.3.00.0110.00016.39
7.2.130.0050.00517.03
7.2.120.0080.00816.61
7.2.110.0100.00416.93
7.2.100.0120.00416.87
7.2.90.0110.00417.05
7.2.80.0000.01316.88
7.2.70.0030.00717.03
7.2.60.0090.00316.84
7.2.50.0100.00316.95
7.2.40.0030.01317.02
7.2.30.0030.01316.72
7.2.20.0130.00316.97
7.2.10.0030.01216.57
7.2.00.0060.00718.16
7.1.250.0080.00315.93
7.1.200.0080.00415.78
7.1.100.0030.01017.99
7.1.70.0000.00917.13
7.1.60.0060.01919.50
7.1.50.0100.01016.63
7.1.00.0030.07722.52
7.0.200.0000.00916.81
7.0.60.0130.08019.78
7.0.50.0100.05717.88
7.0.40.0070.05320.17
7.0.30.0330.07320.15
7.0.20.0470.07320.25
7.0.10.0170.04720.23
7.0.00.0070.05720.18
5.6.280.0030.07321.11
5.6.210.0030.08020.75
5.6.200.0070.07318.16
5.6.190.0000.07020.46
5.6.180.0270.04020.41
5.6.170.0200.03720.54
5.6.160.0000.08320.52
5.6.150.0000.04018.23
5.6.140.0030.08018.15
5.6.130.0030.04318.28
5.6.120.0170.04320.97
5.6.110.0070.04321.02
5.6.100.0070.06720.89
5.6.90.0070.08021.01
5.6.80.0000.04320.54
5.5.350.4030.04020.38
5.5.340.0030.06718.09
5.5.330.0070.04320.44
5.5.320.0030.09020.33
5.5.310.0330.04720.37
5.5.300.0070.08318.02
5.5.290.0130.04717.95
5.5.280.0000.05320.87
5.5.270.0200.07720.96
5.5.260.0100.07020.76
5.5.250.0170.07320.69
5.5.240.0230.07720.37
5.4.450.0330.04019.31
5.4.440.0430.03319.63
5.4.430.0430.04319.63
5.4.420.0370.04319.27
5.4.410.0330.04019.42
5.4.400.0300.04018.88
5.4.390.0370.04018.82
5.4.380.0330.03719.16
5.4.370.0330.03719.16
5.4.360.0500.03719.13
5.4.350.0300.04018.98
5.4.340.0300.04019.23
5.4.320.0370.03319.09
5.4.310.0370.03319.32
5.4.300.0370.03719.08
5.4.290.0330.03719.19
5.4.280.0400.03018.98
5.4.270.0300.04019.21
5.4.260.0370.03318.87
5.4.250.0400.03019.20
5.4.240.0370.03719.15
5.4.230.0400.03318.98
5.4.220.0370.05319.08
5.4.210.0370.03319.21
5.4.200.0270.04319.09
5.4.190.0370.03318.97
5.4.180.0400.03019.13
5.4.170.0300.04019.13
5.4.160.0370.03319.06
5.4.150.0370.03719.04
5.4.140.0370.03316.46
5.4.130.0330.03316.50
5.4.120.0370.03016.32
5.4.110.0330.03716.54
5.4.100.0330.03716.54
5.4.90.0300.03716.46
5.4.80.0300.04016.52
5.4.70.0370.03016.52
5.4.60.0370.03016.45
5.4.50.0330.03316.23
5.4.40.0330.03316.53
5.4.30.0370.03316.25
5.4.20.0370.03016.22
5.4.10.0300.03716.42
5.4.00.0400.07015.94
5.3.290.0400.04714.71
5.3.280.0400.03014.56
5.3.270.0400.05714.60
5.3.260.0330.04014.69
5.3.250.0330.03714.53
5.3.240.0370.03314.66
5.3.230.0470.03714.71
5.3.220.0400.04314.58
5.3.210.0470.04014.48
5.3.200.0470.06314.68
5.3.190.0400.04714.59
5.3.180.0400.05014.62
5.3.170.0400.04314.63
5.3.160.0400.05714.48
5.3.150.0330.04014.49
5.3.140.0430.04314.47
5.3.130.0470.06314.63
5.3.120.0370.04714.55
5.3.110.0400.04314.52
5.3.100.0470.03714.16
5.3.90.0400.04714.25
5.3.80.0470.06014.03
5.3.70.0400.07013.93
5.3.60.0330.03713.98
5.3.50.0300.04013.86
5.3.40.0530.03713.92
5.3.30.0470.04013.96
5.3.20.0330.03313.66
5.3.10.0330.03313.74
5.3.00.0330.03713.70
5.2.170.0430.04712.45
5.2.160.0270.03012.45
5.2.150.0300.03012.45
5.2.140.0230.03312.45
5.2.130.0430.05012.45
5.2.120.0370.05312.45
5.2.110.0300.02712.45
5.2.100.0400.05012.45
5.2.90.0300.02312.45
5.2.80.0300.03012.45
5.2.70.0300.03712.45
5.2.60.0300.02712.45
5.2.50.0270.03012.45
5.2.40.0200.03012.45
5.2.30.0200.03012.45
5.2.20.0400.04712.45
5.2.10.0270.02312.45
5.2.00.0270.03312.45
5.1.60.0300.05012.45
5.1.50.0230.03712.45
5.1.40.0300.04312.45
5.1.30.0270.05012.45
5.1.20.0330.04712.45
5.1.10.0270.03312.45
5.1.00.0300.02012.45
5.0.50.0070.02312.45
5.0.40.0170.03312.45
5.0.30.0100.03012.45
5.0.20.0130.02012.45
5.0.10.0130.02312.45
5.0.00.0100.03012.45
4.4.90.0100.01712.45
4.4.80.0130.02312.45
4.4.70.0100.01712.45
4.4.60.0170.01012.45
4.4.50.0230.02712.45
4.4.40.0130.02712.45
4.4.30.0130.01712.45
4.4.20.0100.01712.45
4.4.10.0170.03312.45
4.4.00.0130.04012.45
4.3.110.0130.02312.45
4.3.100.0130.03012.45
4.3.90.0130.03012.45
4.3.80.0130.03712.45
4.3.70.0100.01712.45
4.3.60.0100.01712.45
4.3.50.0100.02012.45
4.3.40.0100.03012.45
4.3.30.0130.01312.45
4.3.20.0030.01712.45
4.3.10.0070.03012.45
4.3.00.0030.02012.45