3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php //$pot = ("-0.0" * 1337) + 1.7 ; $pot = 0; echo $pot."\n"; echo gettype($pot)."\n"; echo (!preg_match('/[^0-9]/',''.$pot)) ? "YES":"no this isnt correct "; echo (((int)round($pot) - 33)) ? " yeS we are float":"NO"; if(!preg_match('/[^0-9]/',''.$pot) && ((int)round($pot) - 33)) { $pot = (int)round($pot)-33.0; echo "\n".$pot."\n"; echo gettype($pot)."\n"; }else{ echo "\nWRONG\n"; echo "\n".$pot."\n"; echo gettype($pot)."\n"; } $pot = 0; if($pot =='float'){echo "\ngood YOU ROCK\n"; }else{echo "\nWRONG you suck\n";}
based on m9Ptp

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.79
7.3.00.0030.00916.93
7.2.130.0090.00617.24
7.2.120.0040.01117.08
7.2.110.0030.01317.18
7.2.100.0090.00316.98
7.2.90.0100.00316.96
7.2.80.0080.00617.18
7.2.70.0090.00017.25
7.2.60.0020.01317.05
7.2.50.0040.00816.93
7.2.40.0040.00817.26
7.2.30.0070.00717.08
7.2.20.0080.00317.16
7.2.10.0040.00817.11
7.2.00.0040.00818.21
7.1.250.0060.00915.91
7.1.200.0060.00315.96
7.1.100.0300.00418.38
7.1.70.0000.00817.07
7.1.60.0070.01819.50
7.1.50.0200.01734.69
7.1.00.0100.07022.30
7.0.200.0670.00714.76
7.0.140.0100.06721.95
7.0.60.0000.07020.05
7.0.50.0070.04017.91
7.0.40.0130.03720.04
7.0.30.0300.06720.22
7.0.20.0270.07020.05
7.0.10.0170.05320.14
7.0.00.0070.07720.19
5.6.280.0000.07320.82
5.6.210.0100.06720.46
5.6.200.0030.04018.22
5.6.190.0000.05320.60
5.6.180.0200.04720.46
5.6.170.0370.04720.54
5.6.160.0030.09020.48
5.6.150.0030.04018.15
5.6.140.0100.03718.13
5.6.130.0170.05318.12
5.6.120.0000.04321.02
5.6.110.0070.04020.99
5.6.100.0170.07721.14
5.6.90.0070.05320.97
5.6.80.0100.07020.50
5.6.70.0200.07320.28
5.5.350.0200.07020.35
5.5.340.0070.03317.98
5.5.330.0100.06020.43
5.5.320.0030.04320.21
5.5.310.0270.05720.30
5.5.300.0030.03717.98
5.5.290.0030.04717.88
5.5.280.0030.05320.68
5.5.270.0030.06020.74
5.5.260.0100.07320.79
5.5.250.0100.08720.71
5.5.240.0170.05020.04
5.4.450.0630.06319.11
5.4.440.1030.06319.57
5.4.430.0730.06019.54
5.4.420.0670.06719.13
5.4.410.0800.04319.14
5.4.400.0370.05718.69
5.4.390.0370.04318.50
5.4.380.0230.05718.61
5.4.370.0270.05018.74
5.4.360.0270.05318.55
5.4.350.0270.05318.79
5.4.340.0270.05318.61
5.4.320.0200.06018.67
5.4.310.0300.05318.50
5.4.300.0400.07018.46
5.4.290.0230.06018.63
5.4.280.0270.05318.69
5.4.270.0330.04718.55
5.4.260.0230.05718.64
5.4.250.0370.04718.72
5.4.240.0370.05318.71
5.4.230.0270.05318.67
5.4.220.0300.05018.48
5.4.210.0270.05318.48
5.4.200.0230.06716.52
5.4.190.0330.04318.59
5.4.180.0200.05718.75
5.4.170.0100.06718.75
5.4.160.0200.05718.70
5.4.150.0330.04718.71
5.4.140.0330.04716.25
5.4.130.0230.05016.31
5.4.120.0270.05316.07
5.4.110.0330.04716.35
5.4.100.0300.05016.35
5.4.90.0400.04016.26
5.4.80.0270.05016.28
5.4.70.0270.05016.16
5.4.60.0300.04716.14
5.4.50.0270.05016.19
5.4.40.0330.04716.26
5.4.30.0400.03716.27
5.4.20.0270.05016.28
5.4.10.0270.05316.13
5.4.00.0170.06315.52
5.3.290.0400.05314.64
5.3.280.0400.04714.61
5.3.270.0370.07014.59
5.3.260.0370.07314.57
5.3.250.0330.05714.69
5.3.240.0330.06314.71
5.3.230.0430.07014.64
5.3.220.0330.06714.55
5.3.210.0530.05314.53
5.3.200.0400.06714.49
5.3.190.0370.07314.56
5.3.180.0270.05714.52
5.3.170.0470.07014.51
5.3.160.0470.06714.60
5.3.150.0430.06314.65
5.3.140.0230.06314.56
5.3.130.0500.06014.59
5.3.120.0330.06314.56
5.3.110.0330.06314.56
5.3.100.0300.06013.96
5.3.90.0330.07314.12
5.3.80.0500.05314.02
5.3.70.0370.06014.00
5.3.60.0330.05714.02
5.3.50.0230.06713.92
5.3.40.0470.05713.95
5.3.30.0300.05713.88
5.3.20.0270.05013.65
5.3.10.0330.04713.66
5.3.00.0300.05313.61
5.2.170.0300.05711.14
5.2.160.0400.05311.20
5.2.150.0230.04711.13
5.2.140.0270.04311.12
5.2.130.0430.03711.11
5.2.120.0300.03711.16
5.2.110.0270.03711.04
5.2.100.0270.04011.18
5.2.90.0270.03711.14
5.2.80.0200.04311.02
5.2.70.0300.03711.04
5.2.60.0130.05311.10
5.2.50.0300.04010.94
5.2.40.0170.05011.06
5.2.30.0170.04711.05
5.2.20.0100.05011.00
5.2.10.0170.04710.96
5.2.00.0170.04310.76
5.1.60.0230.03310.07
5.1.50.0130.04010.07
5.1.40.0300.02310.10
5.1.30.0200.04010.54
5.1.20.0230.03310.41
5.1.10.0200.03710.18
5.1.00.0270.04010.08
5.0.50.0100.0338.63
5.0.40.0300.0308.45
5.0.30.0170.0378.38
5.0.20.0100.0278.34
5.0.10.0070.0338.21
5.0.00.0130.0408.18
4.4.90.0070.0235.91
4.4.80.0070.0235.98
4.4.70.0100.0205.93
4.4.60.0130.0175.88
4.4.50.0100.0205.91
4.4.40.0170.0335.87
4.4.30.0030.0306.00
4.4.20.0170.0235.95
4.4.10.0100.0276.09
4.4.00.0130.0335.92
4.3.110.0070.0275.86
4.3.100.0130.0205.84
4.3.90.0170.0235.84
4.3.80.0100.0375.80
4.3.70.0130.0175.79
4.3.60.0100.0205.81
4.3.50.0070.0275.79
4.3.40.0100.0335.81
4.3.30.0070.0275.05
4.3.20.0030.0235.05
4.3.10.0030.0275.05
4.3.00.0100.0237.31