3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo serialize(NULL * 0.0021); echo PHP_EOL; echo serialize(0.0021);
based on NjnbE

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.0040.01116.76
7.2.00.0060.00919.00
7.1.200.0000.01015.29
7.1.100.0110.00617.86
7.1.70.0090.00317.18
7.1.60.0100.01319.12
7.1.50.0090.00616.92
7.1.00.0100.07022.33
7.0.200.0000.00816.63
7.0.60.0070.07319.94
7.0.50.0030.06017.87
7.0.40.0100.08020.03
7.0.30.0400.07320.18
7.0.20.0330.08020.18
7.0.10.0100.08320.09
7.0.00.0100.08720.19
5.6.280.0100.06720.92
5.6.210.0100.03320.52
5.6.200.0030.06718.09
5.6.190.0030.08320.40
5.6.180.4030.05020.35
5.6.170.0200.04320.41
5.6.160.0030.06020.37
5.6.150.0100.06718.21
5.6.140.0000.04718.11
5.6.130.0000.08718.18
5.6.120.0000.09021.01
5.6.110.0100.08720.98
5.6.100.0130.07021.07
5.6.90.0130.08320.87
5.6.80.0100.04720.50
5.6.70.4530.03720.43
5.5.350.0170.08720.36
5.5.340.0100.07018.02
5.5.330.0030.04320.48
5.5.320.3500.04720.31
5.5.310.0100.05020.23
5.5.300.0100.04317.91
5.5.290.0100.07717.91
5.5.280.0030.06020.76
5.5.270.0070.03720.75
5.5.260.0100.08720.71
5.5.250.0100.05320.69
5.5.240.0200.07320.25
5.4.450.0670.05719.58
5.4.440.0730.06019.63
5.4.430.0670.05019.44
5.4.420.0770.05319.51
5.4.410.0800.06019.13
5.4.400.0930.05018.99
5.4.390.0770.05318.93
5.4.380.1130.05019.28
5.4.370.0830.05719.34
5.4.360.0870.05019.09
5.4.350.0700.05319.17
5.4.340.0770.06019.27
5.4.320.0670.06319.28
5.4.310.0930.07319.15
5.4.300.0800.05718.93
5.4.290.0800.05719.32
5.4.280.0800.06019.17
5.4.270.0600.05718.93
5.4.260.0570.05718.93
5.4.250.0400.04319.10
5.4.240.0270.05319.24
5.4.230.0770.05019.16
5.4.220.0800.05319.29
5.4.210.0100.05718.84
5.4.200.0700.04316.63
5.4.190.0600.05319.26
5.4.180.0670.05319.26
5.4.170.0530.05018.79
5.4.160.0130.04719.08
5.4.150.0900.04719.07
5.4.140.0670.05016.40
5.4.130.0630.04316.32
5.4.120.0630.06316.50
5.4.110.0670.05716.31
5.4.100.0800.06316.50
5.4.90.0900.05716.26
5.4.80.0600.06016.41
5.4.70.0730.06016.48
5.4.60.0270.04016.37
5.4.50.0000.03716.33
5.4.40.0270.03016.36
5.4.30.0300.06716.38
5.4.20.0230.03016.20
5.3.290.0900.03714.50
5.3.280.0700.03314.53
5.3.270.0870.03714.50
5.3.260.0530.03314.57
5.3.250.0170.03014.61
5.3.240.1130.03714.44
5.3.230.0470.03014.54
5.3.220.1230.02714.36
5.3.210.1070.03014.44
5.3.200.1430.03014.52
5.3.190.1170.03314.39
5.3.180.1400.03314.39
5.3.170.0970.03714.50