3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $pot = ("6.898557993159892e+1" * 1337) + 1.7 ; //$pot = "6898557993159892,00.00" *1; 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;echo "\n".$pot."\n";echo gettype($pot)."\n"; }else{ echo "\nWRONG\n";echo "\n".$pot."\n";echo gettype($pot)."\n"; } echo "\n".$pot."\n";echo gettype($pot)."\n"; if($pot =='float'){echo "\ngood YOU ROCK\n"; }else{echo "\nWRONG you suck\n";}
based on 3QaSd

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.00.0030.00816.84
7.2.130.0000.01117.05
7.2.120.0070.00717.21
7.2.110.0060.00617.08
7.2.100.0070.00517.00
7.2.90.0030.01217.20
7.2.80.0040.01116.98
7.2.70.0060.00916.92
7.2.60.0050.00616.92
7.2.50.0000.01516.89
7.2.40.0120.00016.95
7.2.30.0030.00917.14
7.2.20.0060.00616.85
7.2.10.0060.00616.99
7.2.00.0000.01018.31
7.1.250.0060.01315.85
7.1.240.0130.00016.15
7.1.230.0030.00615.59
7.1.220.0090.00315.91
7.1.210.0040.01215.94
7.1.200.0060.00615.81
7.1.190.0100.00315.69
7.1.180.0070.00715.70
7.1.170.0000.01615.88
7.1.160.0070.00416.02
7.1.150.0060.00616.12
7.1.140.0100.00316.06
7.1.130.0060.00316.11
7.1.120.0090.00415.86
7.1.110.0000.01115.72
7.1.100.0060.01017.21
7.1.90.0130.00015.85
7.1.80.0060.00615.92
7.1.70.0040.00816.58
7.1.60.0080.00717.76
7.1.50.0140.00625.47
7.1.40.0080.00415.84
7.1.30.0040.00815.76
7.1.20.0030.00915.82
7.1.10.0040.00816.03
7.1.00.0020.04519.12
7.0.330.0030.00615.25
7.0.320.0060.00615.33
7.0.310.0000.01015.41
7.0.300.0000.01315.54
7.0.290.0060.00615.27
7.0.280.0040.00815.44
7.0.270.0030.00615.26
7.0.260.0030.01215.50
7.0.250.0070.00715.57
7.0.240.0110.00615.49
7.0.230.0030.00615.36
7.0.220.0110.00715.46
7.0.210.0030.00915.50
7.0.200.0120.00615.23
7.0.190.0120.00315.61
7.0.180.0050.00515.43
7.0.170.0070.00715.63
7.0.160.0080.00315.40
7.0.150.0040.00715.49
7.0.140.0050.03618.85
7.0.130.0030.00615.54
7.0.120.0040.00715.61
7.0.110.0030.00915.33
7.0.100.0040.00815.64
7.0.90.0080.00315.34
7.0.80.0070.00315.39
7.0.70.0030.00815.52
7.0.60.0030.02417.85
7.0.50.0030.03016.73
7.0.40.0030.04717.04
7.0.30.0100.04116.69
7.0.20.0180.03816.79
7.0.10.0120.04316.91
7.0.00.0080.04516.92
5.6.380.0000.01014.28
5.6.370.0090.00514.44
5.6.360.0040.00814.52
5.6.350.0070.00413.87
5.6.340.0000.01114.43
5.6.330.0100.00314.25
5.6.320.0110.00714.55
5.6.310.0080.00414.12
5.6.300.0080.00514.16
5.6.290.0000.01214.18
5.6.280.0050.03817.65
5.6.270.0060.00614.46
5.6.260.0030.00714.50
5.6.250.0070.00414.38
5.6.240.0030.00714.58
5.6.230.0030.01014.36
5.6.220.0030.01214.38
5.6.210.0110.02917.33
5.6.200.0050.04516.18
5.6.190.0050.02817.35
5.6.180.0150.03017.60
5.6.170.0130.04517.34
5.6.160.0050.02317.48
5.6.150.0040.03216.12
5.6.140.0060.04716.31
5.6.130.0070.02216.33
5.6.120.0040.04117.68
5.6.110.0070.03017.65
5.6.100.0030.03917.56
5.6.90.0090.04317.56
5.6.80.0060.04517.39
5.6.70.0150.03617.24
5.6.60.0040.00714.09
5.6.50.0070.00414.21
5.6.40.0070.00314.12
5.6.30.0070.00714.13
5.6.20.0050.00614.58
5.6.10.0070.00714.62
5.6.00.0030.00614.32
5.5.380.0090.00310.80
5.5.370.0000.00811.24
5.5.360.0040.00711.00
5.5.350.0070.04315.70
5.5.340.0000.03614.56
5.5.330.0110.03915.59
5.5.320.0120.01715.67
5.5.310.0200.04015.73
5.5.300.0080.02114.32
5.5.290.0090.04114.56
5.5.280.0040.03015.92
5.5.270.0100.04015.93
5.5.260.0110.04115.86
5.5.250.0120.03915.79
5.5.240.0020.02615.69
5.5.230.0000.00810.98
5.5.220.0000.01010.88
5.5.210.0100.00311.04
5.5.200.0040.00710.96
5.5.190.0040.00411.02
5.5.180.0040.00410.94
5.5.170.0030.00611.23
5.5.160.0110.00010.89
5.5.150.0070.00310.96
5.5.140.0080.00411.12
5.5.130.0020.00511.13
5.5.120.0030.00310.92
5.5.110.0060.00010.84
5.5.100.0030.00710.93
5.5.90.0060.00310.78
5.5.80.0050.00011.14
5.5.70.0060.00611.10
5.5.60.0050.00210.89
5.5.50.0070.00010.51
5.5.40.0040.00411.06
5.5.30.0060.00411.00
5.5.20.0000.00810.87
5.5.10.0060.00310.93
5.5.00.0000.00910.90
5.4.450.0330.03115.23
5.4.440.0530.02715.34
5.4.430.0410.03315.27
5.4.420.0520.02715.14
5.4.410.0090.02715.02
5.4.400.0160.03014.92
5.4.390.0240.02514.80
5.4.380.0130.03414.76
5.4.370.0170.02714.71
5.4.360.0150.03214.75
5.4.350.0180.03314.76
5.4.340.0150.03214.94
5.4.330.0060.00010.62
5.4.320.0170.02814.57
5.4.310.0170.02914.64
5.4.300.0170.02814.60
5.4.290.0150.03314.73
5.4.280.0150.03114.76
5.4.270.0150.03114.70
5.4.260.0200.03014.76
5.4.250.0190.02614.82
5.4.240.0190.03414.79
5.4.230.0190.02814.75
5.4.220.0190.02714.82
5.4.210.0170.03014.76
5.4.200.0180.03413.70
5.4.190.0080.03514.88
5.4.180.0200.02514.92
5.4.170.0150.02814.68
5.4.160.0140.03314.81
5.4.150.0140.03114.79
5.4.140.0120.03513.62
5.4.130.0190.03013.60
5.4.120.0170.03213.60
5.4.110.0120.03013.60
5.4.100.0170.03213.63
5.4.90.0180.02813.43
5.4.80.0120.03413.57
5.4.70.0110.03313.40
5.4.60.0130.03013.59
5.4.50.0160.02913.55
5.4.40.0180.02513.58
5.4.30.0190.02413.45
5.4.20.0210.03713.42
5.4.10.0230.03313.53
5.4.00.0160.03413.07
5.3.290.0170.03812.62
5.3.280.0200.03112.50
5.3.270.0120.03412.60
5.3.260.0210.03612.58
5.3.250.0230.02512.66
5.3.240.0270.02612.55
5.3.230.0170.03412.56
5.3.220.0100.02712.51
5.3.210.0070.03212.58
5.3.200.0170.02712.59
5.3.190.0080.03312.53
5.3.180.0080.03112.59
5.3.170.0190.03312.51
5.3.160.0170.03112.57
5.3.150.0190.02712.59
5.3.140.0130.02812.57
5.3.130.0080.03312.59
5.3.120.0120.03212.55
5.3.110.0130.03212.62
5.3.100.0180.03612.30
5.3.90.0270.02512.27
5.3.80.0170.03612.27
5.3.70.0150.03012.28
5.3.60.0170.02912.31
5.3.50.0200.02512.28
5.3.40.0220.02712.23
5.3.30.0270.03012.18
5.3.20.0210.02712.05
5.3.10.0200.02312.08
5.3.00.0130.02712.08
5.2.170.0130.02410.88
5.2.160.0160.02110.85
5.2.150.0180.01910.87
5.2.140.0130.03010.91
5.2.130.0120.02410.95
5.2.120.0180.01810.89
5.2.110.0180.02210.89
5.2.100.0180.02010.89
5.2.90.0150.02110.82
5.2.80.0080.02610.86
5.2.70.0100.02710.90
5.2.60.0170.02710.84
5.2.50.0180.02010.82
5.2.40.0130.02110.84
5.2.30.0140.02110.82
5.2.20.0250.01710.79
5.2.10.0160.02610.76
5.2.00.0160.02810.73
5.1.60.0170.02410.37
5.1.50.0130.02310.36
5.1.40.0120.02610.33
5.1.30.0070.02610.54
5.1.20.0070.03110.54
5.1.10.0130.02610.42
5.1.00.0130.02410.38
5.0.50.0070.0179.61
5.0.40.0080.0159.58
5.0.30.0080.0229.48
5.0.20.0030.0199.52
5.0.10.0110.0139.44
5.0.00.0050.0309.41
4.4.90.0100.0108.30
4.4.80.0060.0158.29
4.4.70.0090.0108.32
4.4.60.0050.0218.27
4.4.50.0120.0118.33
4.4.40.0030.0228.28
4.4.30.0070.0128.34
4.4.20.0060.0128.26
4.4.10.0080.0148.31
4.4.00.0100.0178.33
4.3.110.0070.0178.24
4.3.100.0050.0208.25
4.3.90.0100.0188.28
4.3.80.0090.0178.24
4.3.70.0040.0198.18
4.3.60.0070.0128.22
4.3.50.0050.0148.19
4.3.40.0050.0268.21
4.3.30.0080.0197.75
4.3.20.0070.0157.75
4.3.10.0030.0167.75
4.3.00.0030.0158.92