3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php /** * Solve this puzzle by entering correct parameters. * Use http://3v4l.org/ if you don't have proper php or mcrypt versions installed. */ $a = null; /* [true|false] */ $b = null; /* [true|false] */ $c = null; /* [true|false] */ $name = ''; /* Your first name here */ function get_halt_data() { return trim(file_get_contents(__FILE__, false, null, __COMPILER_HALT_OFFSET__)); } if ($a) { if ($b && !$c) { echo "No secret here!"; } else if(!$b && !$c) { echo "Nothing here also!"; } } else { if (!$b) { if (!$a && (!$b && $c)) { echo rtrim(mcrypt_decrypt(MCRYPT_RIJNDAEL_256, md5($name), base64_decode(get_halt_data()), MCRYPT_MODE_CBC, md5(md5($name))), "\0"); } else { echo "Nice try buddy. No luck here!"; } } else { echo "Nothing here!"; } } __halt_compiler();

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.69
7.2.00.0080.00819.39
7.1.200.0000.01115.67
7.1.100.0610.01015.98
7.1.70.0130.01917.05
7.1.60.0060.00616.86
7.1.50.0140.01016.67
7.1.00.0070.07322.31
7.0.200.0070.01016.46
7.0.140.0030.04722.12
7.0.60.0100.07719.94
7.0.50.0100.09317.95
7.0.40.0070.08720.10
7.0.30.0130.04720.26
7.0.20.0300.08020.10
7.0.10.0030.05720.23
7.0.00.0030.09720.05
5.6.280.0100.06720.99
5.6.210.0100.08020.74
5.6.200.0070.06018.24
5.6.190.0070.04020.68
5.6.180.0230.05720.64
5.6.170.0270.07320.43
5.6.160.0130.03320.52
5.6.150.0030.07718.16
5.6.140.0070.05018.20
5.6.130.0000.04718.21
5.6.120.0100.07720.90
5.6.110.0030.04321.12
5.6.100.0070.08320.98
5.6.90.0170.07321.01
5.6.80.0030.06320.29
5.5.350.0230.07720.39
5.5.340.0030.07018.08
5.5.330.0130.07020.42
5.5.320.0400.06020.30
5.5.310.0430.07320.42
5.5.300.0070.05717.98
5.5.290.0100.08318.08
5.5.280.0030.09020.81
5.5.270.0070.03720.89
5.5.260.0130.07320.77
5.5.250.0000.06020.66
5.5.240.0070.04020.13
5.4.450.0670.05719.43
5.4.440.0770.05319.42
5.4.430.0830.05719.49
5.4.420.0770.05319.23
5.4.410.0570.05719.49
5.4.400.1070.06019.27
5.4.390.0230.04718.50
5.4.380.0270.05018.84
5.4.370.0170.05718.78
5.4.360.0270.04718.59
5.4.350.0300.04318.73
5.4.340.0270.04718.78
5.4.320.0030.06718.72
5.4.310.0230.04718.63
5.4.300.0330.03718.50
5.4.290.0200.05018.74
5.4.280.0170.05018.78
5.4.270.0100.05718.75
5.4.260.0230.04718.52
5.4.250.0200.05018.74
5.4.240.0270.06318.77
5.4.230.0170.05318.45
5.4.220.0130.06318.52
5.4.210.0170.05318.59
5.4.200.0170.05016.59
5.4.190.0230.04318.71
5.4.180.0170.05318.75
5.4.170.0200.05018.57
5.4.160.0230.05018.82
5.4.150.0170.05318.71
5.4.140.0130.05716.29
5.4.130.0170.04716.23
5.4.120.0130.06316.29
5.4.110.0170.05016.29
5.4.100.0130.05716.29
5.4.90.0270.04316.19
5.4.80.0300.04716.27
5.4.70.0300.04016.33
5.4.60.0270.04016.17
5.4.50.0100.05716.39
5.4.40.0270.04016.23
5.4.30.0230.04316.36
5.4.20.0200.04716.25
5.4.10.0100.05716.18
5.4.00.0200.04715.71
5.3.290.0200.05314.85
5.3.280.0200.05014.65
5.3.270.0100.06014.77
5.3.260.0130.06314.63
5.3.250.0170.05314.63
5.3.240.0170.05014.74
5.3.230.0270.06014.73
5.3.220.0200.05014.57
5.3.210.0200.05014.67
5.3.200.0170.05014.61
5.3.190.0100.06014.79
5.3.180.0100.05714.77
5.3.170.0130.05314.54
5.3.160.0130.05314.58
5.3.150.0200.04714.61
5.3.140.0170.05014.55
5.3.130.0100.06014.54
5.3.120.0200.05014.69
5.3.110.0230.04714.75
5.3.100.0170.05014.14
5.3.90.0130.05014.12
5.3.80.0130.05314.07
5.3.70.0170.04714.07
5.3.60.0130.05314.06
5.3.50.0030.06314.11
5.3.40.0200.04714.07
5.3.30.0230.04714.03
5.3.20.0100.05713.81
5.3.10.0200.04313.75
5.3.00.0170.05013.86
5.2.170.0130.04011.19
5.2.160.0070.04711.24
5.2.150.0130.04011.26
5.2.140.0130.04711.20
5.2.130.0130.04011.18
5.2.120.0100.04311.30
5.2.110.0300.02311.22
5.2.100.0130.04011.23
5.2.90.0070.04711.32
5.2.80.0100.04311.19
5.2.70.0170.04711.11
5.2.60.0100.04711.12
5.2.50.0100.04711.14
5.2.40.0100.04310.97
5.2.30.0070.05310.96
5.2.20.0070.04711.00
5.2.10.0130.03710.93
5.2.00.0070.04710.79
5.1.60.0130.03010.11
5.1.50.0070.03710.02
5.1.40.0170.0279.98
5.1.30.0100.04010.43
5.1.20.0170.03710.46
5.1.10.0100.03710.15
5.1.00.0200.02710.07
5.0.50.0070.0278.65
5.0.40.0100.0278.63
5.0.30.0030.0478.43
5.0.20.0100.0238.31
5.0.10.0030.0308.18
5.0.00.0070.0438.21
4.4.90.0070.0205.91
4.4.80.0030.0235.97
4.4.70.0030.0235.91
4.4.60.0070.0205.93
4.4.50.0100.0175.93
4.4.40.0030.0406.02
4.4.30.0100.0176.02
4.4.20.0100.0206.01
4.4.10.0070.0205.99
4.4.00.0000.0405.95
4.3.110.0000.0275.84
4.3.100.0030.0235.84
4.3.90.0030.0235.82
4.3.80.0000.0375.80
4.3.70.0070.0205.80
4.3.60.0070.0205.80
4.3.50.0070.0205.84
4.3.40.0130.0275.80
4.3.30.0030.0234.66
4.3.20.0030.0234.60
4.3.10.0070.0204.60
4.3.00.0070.0277.23