3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php #$_GET['honeypot'] = '6898557993159892'; #$honeypot = ($_GET['honeypot'] * 1337) + 1.7; $honeypot = (" \t\r\n 6898557993159892" * 1337) + 1.7 ; echo $honeypot."\n"; echo (!preg_match('/[^0-9]/',''.$honeypot)) ? "YES":"no this isnt correct "; echo (is_float((int)round($honeypot) - 33)) ? " yeS we are float":"NO"; if(!preg_match('/[^0-9]/',(string)$honeypot) && is_float((int)round($honeypot) - 33)) { echo "\ngood\n"; }else{ echo "\nWRONG\n"; }
based on 0ucPI

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.00.0030.00919.54
7.1.200.0040.00415.84
7.1.100.0080.00418.23
7.1.70.0040.00717.29
7.1.60.0000.02319.50
7.1.50.0070.01516.88
7.1.00.0030.07722.57
7.0.200.0000.00817.02
7.0.140.0000.07322.20
7.0.60.0170.07720.19
7.0.50.0000.05318.04
7.0.40.0030.09320.06
7.0.30.0200.04020.27
7.0.20.0270.03720.25
7.0.10.0200.09020.47
7.0.00.0000.04720.03
5.6.280.0070.07021.21
5.6.210.0030.08720.81
5.6.200.0070.04718.34
5.6.190.0130.07020.77
5.6.180.0170.07320.53
5.6.170.0500.06320.68
5.6.160.0070.05020.71
5.6.150.0070.03718.17
5.6.140.0070.03718.27
5.6.130.0170.07018.24
5.6.120.0100.06021.20
5.6.110.0200.07721.12
5.6.100.0070.03721.05
5.6.90.0200.07321.06
5.6.80.0070.08720.44
5.6.70.2730.04020.45
5.5.350.0130.07720.44
5.5.340.0000.05718.11
5.5.330.0100.04020.29
5.5.320.0130.07720.60
5.5.310.0300.04020.27
5.5.300.0100.07318.14
5.5.290.0100.07718.07
5.5.280.0030.04020.96
5.5.270.0000.09020.85
5.5.260.0070.09020.88
5.5.250.0100.07020.77
5.5.240.0130.08020.46
5.4.450.0130.05319.63
5.4.440.1030.08719.16
5.4.430.0800.05318.98
5.4.420.0970.05019.57
5.4.410.0200.04019.36
5.4.400.0530.06318.69
5.4.390.0330.04718.64
5.4.380.0200.06318.58
5.4.370.0400.06318.61
5.4.360.0430.06318.61
5.4.350.0300.05718.44
5.4.340.0270.05318.72
5.4.320.0430.06018.52
5.4.310.0330.05718.70
5.4.300.0370.04318.64
5.4.290.0200.06018.49
5.4.280.0300.05318.56
5.4.270.0270.05318.78
5.4.260.0330.05318.77
5.4.250.0370.04718.58
5.4.240.0330.05318.52
5.4.230.0530.05718.64
5.4.220.0400.04718.58
5.4.210.0200.05718.64
5.4.200.0300.04716.63
5.4.190.0230.05018.45
5.4.180.0230.05318.48
5.4.170.0200.05718.67
5.4.160.0200.05718.63
5.4.150.0270.06018.47
5.4.140.0200.06016.22
5.4.130.0270.05016.18
5.4.120.0200.05716.36
5.4.110.0300.04316.41
5.4.100.0370.04716.14
5.4.90.0200.05316.22
5.4.80.0300.06316.20
5.4.70.0430.04716.14
5.4.60.0230.07316.18
5.4.50.0300.06716.04
5.4.40.0270.04716.23
5.4.30.0270.04716.16
5.4.20.0200.05316.32
5.4.10.0230.05016.13
5.4.00.0130.06015.67
5.3.290.0130.06314.64
5.3.280.0270.05014.57
5.3.270.0330.04314.67
5.3.260.0230.05314.66
5.3.250.0230.05314.69
5.3.240.0200.05314.54
5.3.230.0270.05014.52
5.3.220.0270.05014.58
5.3.210.0300.04714.55
5.3.200.0270.04314.49
5.3.190.0270.04714.61
5.3.180.0330.04314.64
5.3.170.0270.05714.45
5.3.160.0170.05314.62
5.3.150.0270.04714.54
5.3.140.0200.06014.45
5.3.130.0300.05014.58
5.3.120.0330.05014.60
5.3.110.0370.04014.55
5.3.100.0330.04713.95
5.3.90.0300.06314.11
5.3.80.0170.05714.00
5.3.70.0270.04713.95
5.3.60.0330.06313.89
5.3.50.0330.04313.91
5.3.40.0200.05313.93
5.3.30.0270.05014.02
5.3.20.0230.05313.62
5.3.10.0170.05313.65
5.3.00.0230.05713.62
5.2.170.0130.05311.29
5.2.160.0200.04011.21
5.2.150.0270.03311.25
5.2.140.0130.04311.31
5.2.130.0100.04711.12
5.2.120.0200.03711.12
5.2.110.0230.03711.26
5.2.100.0230.03711.29
5.2.90.0130.05311.36
5.2.80.0130.04711.21
5.2.70.0170.04311.27
5.2.60.0170.04011.15
5.2.50.0200.03711.18
5.2.40.0200.03311.14
5.2.30.0100.04711.15
5.2.20.0100.04011.20
5.2.10.0070.04311.03
5.2.00.0130.04010.84
5.1.60.0100.03710.18
5.1.50.0200.04010.15
5.1.40.0130.03710.20
5.1.30.0170.03310.46
5.1.20.0200.03010.54
5.1.10.0200.03310.25
5.1.00.0170.03310.22
5.0.50.0070.0308.84
5.0.40.0070.0278.56
5.0.30.0100.0438.38
5.0.20.0100.0238.35
5.0.10.0130.0238.47
5.0.00.0070.0438.35
4.4.90.0030.0237.25
4.4.80.0100.0207.25
4.4.70.0070.0207.25
4.4.60.0030.0237.25
4.4.50.0070.0237.25
4.4.40.0030.0377.25
4.4.30.0070.0237.25
4.4.20.0070.0237.25
4.4.10.0070.0237.25
4.4.00.0100.0377.25
4.3.110.0030.0337.25
4.3.100.0100.0207.25
4.3.90.0130.0137.25
4.3.80.0100.0337.25
4.3.70.0070.0207.25
4.3.60.0130.0137.25
4.3.50.0070.0277.25
4.3.40.0070.0337.25
4.3.30.0030.0237.25
4.3.20.0000.0277.25
4.3.10.0000.0237.25
4.3.00.0130.0179.29