3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $floater = " 0.456 \n\n "; var_dump((float)$floater);
based on kiXur

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.0060.00619.33
7.1.100.0230.01017.61
7.1.70.0030.00616.96
7.1.60.0110.01419.61
7.1.50.0040.01516.75
7.1.00.0000.08022.48
7.0.200.0000.01016.69
7.0.140.0100.06322.15
7.0.60.0030.04319.99
7.0.50.0100.07717.79
7.0.40.0130.07720.09
7.0.30.0300.06720.02
7.0.20.0400.07020.00
7.0.10.0070.08720.00
7.0.00.0000.08720.13
5.6.280.0030.07320.90
5.6.210.0070.06720.54
5.6.200.0070.08318.12
5.6.190.0070.05020.46
5.6.180.0200.04720.45
5.6.170.0270.05320.49
5.6.160.0030.04720.32
5.6.150.0100.08018.21
5.6.140.0170.07018.21
5.6.130.0000.04718.18
5.6.120.0100.08320.89
5.6.110.0130.07020.97
5.6.100.0130.08020.96
5.6.90.0070.08020.87
5.6.80.0070.05720.39
5.5.350.3600.03720.32
5.5.340.0030.08318.06
5.5.330.0170.07720.21
5.5.320.0470.06720.27
5.5.310.0130.04020.17
5.5.300.0030.04717.89
5.5.290.0030.08318.02
5.5.280.0130.04720.75
5.5.270.0030.05320.61
5.5.260.0100.04320.74
5.5.250.0130.05020.46
5.5.240.0130.07320.11
5.4.450.0870.03719.57
5.4.440.0730.04019.41
5.4.430.0470.06019.27
5.4.420.0900.04319.43
5.4.410.0600.05319.12
5.4.400.0870.05719.16
5.4.390.0830.04318.84
5.4.380.0200.07318.51
5.4.370.0230.04718.72
5.4.360.0170.05718.67
5.4.350.0170.05718.49
5.4.340.0270.07018.45
5.4.320.0030.04612.45
5.4.310.0090.04712.45
5.4.300.0070.04012.45
5.4.290.0060.04212.45
5.4.280.0070.03712.34
5.4.270.0060.03912.35
5.4.260.0110.04212.34
5.4.250.0070.04012.35
5.4.240.0050.04212.35
5.4.230.0070.04012.34
5.4.220.0070.04212.34
5.4.210.0090.03612.34
5.4.200.0120.04712.34
5.4.190.0070.03612.33
5.4.180.0060.03612.33
5.4.170.0070.03912.35
5.4.160.0080.03412.34
5.4.150.0060.03612.34
5.4.140.0090.03412.02
5.4.130.0100.04012.01
5.4.120.0060.03511.97
5.4.110.0080.03611.96
5.4.100.0080.03411.96
5.4.90.0090.03411.96
5.4.80.0100.03811.96
5.4.70.0070.04211.96
5.4.60.0070.03911.96
5.4.50.0070.03511.96
5.4.40.0090.04211.95
5.4.30.0080.03911.95
5.4.20.0060.03611.95
5.4.10.0070.03811.95
5.4.00.0030.03911.44
5.3.290.0060.04112.80
5.3.280.0080.04812.70
5.3.270.0080.04112.73
5.3.260.0090.03912.72
5.3.250.0090.04412.71
5.3.240.0050.03812.72
5.3.230.0100.04312.71
5.3.220.0090.03612.68
5.3.210.0060.03912.68
5.3.200.0080.04412.68
5.3.190.0090.04012.67
5.3.180.0030.04312.67
5.3.170.0050.03912.67
5.3.160.0100.03412.68
5.3.150.0050.04712.67
5.3.140.0100.03312.66
5.3.130.0080.03812.66
5.3.120.0090.03612.66
5.3.110.0090.04712.66
5.3.100.0090.03412.12
5.3.90.0080.03912.08
5.3.80.0080.04312.07
5.3.70.0080.03812.07
5.3.60.0100.03412.07
5.3.50.0080.03612.00
5.3.40.0080.03512.00
5.3.30.0070.03411.95
5.3.20.0090.03211.72
5.3.10.0060.03611.69
5.3.00.0060.03811.68
5.2.170.0070.0309.18
5.2.160.0040.0309.18
5.2.150.0030.0339.18
5.2.140.0060.0319.18
5.2.130.0040.0349.14
5.2.120.0020.0349.14
5.2.110.0100.0319.14
5.2.100.0080.0289.14
5.2.90.0040.0379.14
5.2.80.0070.0389.13
5.2.70.0050.0349.13
5.2.60.0060.0359.09
5.2.50.0060.0369.05
5.2.40.0080.0279.04
5.2.30.0060.0309.01
5.2.20.0040.0309.00
5.2.10.0080.0288.92
5.2.00.0060.0368.78
5.1.60.0060.0228.06
5.1.50.0040.0278.05
5.1.40.0060.0298.04
5.1.30.0040.0288.39
5.1.20.0030.0278.41
5.1.10.0030.0328.13
5.1.00.0050.0268.13
5.0.50.0030.0266.62
5.0.40.0030.0326.47
5.0.30.0040.0406.29
5.0.20.0070.0196.28
5.0.10.0040.0236.26
5.0.00.0040.0306.25
4.4.90.0050.0224.78
4.4.80.0020.0204.76
4.4.70.0010.0184.75
4.4.60.0040.0204.75
4.4.50.0050.0134.77
4.4.40.0040.0304.71
4.4.30.0060.0184.76
4.4.20.0050.0204.85
4.4.10.0030.0204.85
4.4.00.0040.0304.75
4.3.110.0050.0194.66
4.3.100.0030.0154.67
4.3.90.0060.0164.63
4.3.80.0020.0274.58
4.3.70.0030.0144.63
4.3.60.0030.0214.63
4.3.50.0020.0164.63
4.3.40.0030.0314.54
4.3.30.0010.0163.30
4.3.20.0030.0183.29
4.3.10.0040.0143.25
4.3.00.0100.01713.57