3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $s = "sdfsfs"; $a = floatval($s); echo $a; $t = trim("2342 "); echo is_numeric($t);
based on nniCV

Here you find the average performance (time & memory) of each version. A greyed 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.01219.39
7.1.100.0060.00618.01
7.1.70.0040.00817.08
7.1.60.0040.02119.22
7.1.50.0070.01316.89
7.1.00.0000.08022.45
7.0.200.0030.01016.62
7.0.140.0000.03322.23
7.0.60.0130.06019.90
7.0.50.0100.08317.79
7.0.40.0030.08720.06
7.0.30.0230.08020.04
7.0.20.0300.05320.20
7.0.10.0100.05320.20
7.0.00.0000.09320.12
5.6.280.0100.06720.85
5.6.210.0030.08020.72
5.6.200.0200.06718.21
5.6.190.0070.06720.69
5.6.180.0230.03720.57
5.6.170.0230.04020.50
5.6.160.0230.07720.52
5.6.150.0030.08318.12
5.6.140.0130.07718.15
5.6.130.0000.04318.21
5.6.120.0070.05721.03
5.6.110.0000.07720.98
5.6.100.0130.07021.04
5.6.90.0070.06720.99
5.6.80.0100.06720.35
5.5.350.0330.06320.41
5.5.340.0100.07717.99
5.5.330.0070.08020.29
5.5.320.0370.07320.23
5.5.310.0330.06720.30
5.5.300.0100.03717.92
5.5.290.0030.05318.02
5.5.280.0070.03720.86
5.5.270.0030.08320.83
5.5.260.0200.07720.66
5.5.250.0070.04320.65
5.5.240.0030.07720.15
5.4.450.0670.06319.48
5.4.440.0630.06319.42
5.4.430.0170.05019.54
5.4.420.0000.06319.41
5.4.410.0770.05019.51
5.4.400.0670.04019.20
5.4.390.0230.05018.53
5.4.380.0270.05018.72
5.4.370.0270.05018.66
5.4.360.0270.05018.73
5.4.350.0300.05018.77
5.4.340.0200.06018.73
5.4.320.0370.04718.68
5.4.310.0230.05718.68
5.4.300.0230.06018.46
5.4.290.0400.03718.73
5.4.280.0230.05318.59
5.4.270.0300.04718.58
5.4.260.0200.05718.57
5.4.250.0300.05018.54
5.4.240.0270.05318.55
5.4.230.0230.05318.68
5.4.220.0230.05718.66
5.4.210.0230.05318.48
5.4.200.0170.06016.55
5.4.190.0470.05718.66
5.4.180.0230.05318.68
5.4.170.0300.05018.47
5.4.160.0300.04718.63
5.4.150.0370.04318.73
5.4.140.0230.05316.07
5.4.130.0370.03716.22
5.4.120.0270.04716.26
5.4.110.0300.04016.26
5.4.100.0330.04016.08
5.4.90.0230.05016.07
5.4.80.0300.04016.38
5.4.70.0200.05316.03
5.4.60.0300.04016.39
5.4.50.0230.05016.23
5.4.40.0330.04316.16
5.4.30.0230.04716.22
5.4.20.0170.05716.13
5.4.10.0170.05716.21
5.4.00.0300.04015.71
5.3.290.0230.05714.66
5.3.280.0270.05014.57
5.3.270.0270.05014.57
5.3.260.0200.06014.61
5.3.250.0230.05314.69
5.3.240.0170.06314.58
5.3.230.0230.05314.50
5.3.220.0270.05014.66
5.3.210.0370.04714.56
5.3.200.0230.05014.47
5.3.190.0300.05014.57
5.3.180.0330.04314.50
5.3.170.0230.05314.59
5.3.160.0270.05314.43
5.3.150.0130.06014.49
5.3.140.0300.04714.54
5.3.130.0200.05714.64
5.3.120.0230.05314.52
5.3.110.0230.05314.49
5.3.100.0270.04714.13
5.3.90.0230.05013.95
5.3.80.0270.04714.11
5.3.70.0270.04713.95
5.3.60.0330.04013.96
5.3.50.0230.04713.93
5.3.40.0230.05014.04
5.3.30.0130.05714.02
5.3.20.0130.05713.67
5.3.10.0270.04713.60
5.3.00.0200.05313.58
5.2.170.0130.04711.17
5.2.160.0270.03711.05
5.2.150.0200.04011.13
5.2.140.0230.03711.14
5.2.130.0300.04311.03
5.2.120.0130.04311.05
5.2.110.0230.04311.14
5.2.100.0230.04011.05
5.2.90.0200.04311.09
5.2.80.0170.04711.25
5.2.70.0200.04311.23
5.2.60.0170.04311.08
5.2.50.0200.04310.96
5.2.40.0200.03711.05
5.2.30.0170.04011.01
5.2.20.0130.04310.92
5.2.10.0200.03710.93
5.2.00.0170.04010.68
5.1.60.0070.04310.10
5.1.50.0170.03310.03
5.1.40.0130.0379.95
5.1.30.0270.02710.43
5.1.20.0170.03710.47
5.1.10.0170.03710.06
5.1.00.0170.03710.09
5.0.50.0070.0338.72
5.0.40.0130.0278.53
5.0.30.0070.0478.42
5.0.20.0100.0278.19
5.0.10.0130.0238.20
5.0.00.0130.0378.36
4.4.90.0070.0235.91
4.4.80.0130.0175.89
4.4.70.0100.0205.90
4.4.60.0100.0205.89
4.4.50.0100.0205.92
4.4.40.0130.0305.88
4.4.30.0070.0235.93
4.4.20.0100.0205.93
4.4.10.0070.0235.92
4.4.00.0070.0375.98
4.3.110.0100.0205.82
4.3.100.0100.0205.91
4.3.90.0070.0235.82
4.3.80.0170.0235.76
4.3.70.0100.0235.80
4.3.60.0100.0175.82
4.3.50.0030.0275.82
4.3.40.0030.0375.75
4.3.30.0100.0235.66
4.3.20.0070.0205.66
4.3.10.0070.0275.66
4.3.00.0070.0237.23