3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $val = 1.5; var_dump((string)$val);

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.0040.01119.31
7.1.100.0030.01018.22
7.1.70.0080.00616.74
7.1.60.0130.01019.31
7.1.50.0130.00616.76
7.1.00.0070.07022.30
7.0.200.0000.00816.75
7.0.140.0000.07722.10
7.0.120.0030.07721.96
7.0.60.0070.08019.91
7.0.50.0170.05017.89
7.0.40.0030.04317.76
7.0.30.0000.04317.70
7.0.20.0070.05717.79
7.0.10.0030.04017.75
7.0.00.0070.03717.77
5.6.280.0030.07320.91
5.6.210.0200.07320.52
5.6.200.0230.04718.19
5.6.190.0030.04018.20
5.6.180.0030.04018.07
5.6.170.0030.04018.15
5.6.160.0030.06318.07
5.6.150.0030.04018.15
5.6.140.0000.04318.15
5.6.130.0000.04318.15
5.6.120.0030.04318.09
5.6.110.0000.04318.20
5.6.100.0030.04318.11
5.6.90.0030.04018.11
5.6.80.0030.03717.57
5.6.70.0100.03017.49
5.6.60.0000.04017.58
5.6.50.0100.03017.59
5.6.40.0000.04017.47
5.6.30.0030.03717.57
5.6.20.0070.06317.53
5.6.10.0070.04717.47
5.6.00.0030.07317.51
5.5.350.0170.08320.38
5.5.340.0070.08018.00
5.5.330.0030.04017.92
5.5.320.0030.04017.95
5.5.310.0000.04017.90
5.5.300.0100.03318.02
5.5.290.0030.04017.94
5.5.280.0100.03717.88
5.5.270.0070.03717.95
5.5.260.0070.03717.99
5.5.250.0070.03717.79
5.5.240.0030.04017.39
5.5.230.0030.03717.33
5.5.220.0070.03717.27
5.5.210.0000.04017.36
5.5.200.0030.03717.30
5.5.190.0070.04017.24
5.5.180.0070.03717.23
5.5.160.0070.05717.27
5.5.150.0000.05317.33
5.5.140.0070.05317.29
5.5.130.0000.06717.26
5.5.120.0070.08017.37
5.5.110.0030.04017.36
5.5.100.0130.07317.27
5.5.90.0070.06017.19
5.5.80.0100.07317.20
5.5.70.0030.07017.24
5.5.60.0070.06017.22
5.5.50.0100.07717.26
5.5.40.0000.05017.16
5.5.30.0070.03717.15
5.5.20.0070.03717.25
5.5.10.0100.06017.22
5.5.00.0100.07717.25
5.4.450.0030.04019.31
5.4.440.0030.04019.29
5.4.430.0070.03319.30
5.4.420.0070.03719.30
5.4.410.0000.04019.25
5.4.400.0000.04018.89
5.4.390.0130.02718.89
5.4.380.0030.03719.03
5.4.370.0000.04019.01
5.4.360.0030.03718.95
5.4.350.0070.03318.80
5.4.340.0030.06018.91
5.4.320.0100.06319.09
5.4.310.0070.06319.03
5.4.300.0170.07018.99
5.4.290.0070.04719.07
5.4.280.0100.07318.98
5.4.270.0070.05319.12
5.4.260.0100.07019.20
5.4.250.0130.06719.12
5.4.240.0130.07318.98
5.4.230.0030.06718.98
5.4.220.0170.04019.20
5.4.210.0030.08019.20
5.4.200.0030.08018.88
5.4.190.0100.04718.96
5.4.180.0070.07319.23
5.4.170.0100.05019.11
5.4.160.0030.06019.01
5.4.150.0100.07719.19
5.4.140.0030.05016.34
5.4.130.0100.06716.28
5.4.120.0100.05716.25
5.4.110.0170.04016.29
5.4.100.0070.08716.27
5.4.90.0130.06716.38
5.4.80.0130.04716.39
5.4.70.0070.07016.50
5.4.60.0100.07316.15
5.4.50.0030.04716.50
5.4.40.0100.07016.30
5.4.30.0070.07716.49
5.4.20.0070.04316.25
5.4.10.0000.05716.25
5.4.00.0100.05715.77
5.3.290.0000.06014.62
5.3.280.0100.07714.67
5.3.270.0230.05014.52
5.3.260.0030.08314.38
5.3.250.0170.07014.57
5.3.240.0030.04314.56
5.3.230.0070.03314.58
5.3.220.0070.07714.34
5.3.210.0130.06014.53
5.3.200.0070.06014.55
5.3.190.0100.06314.48
5.3.180.0130.03014.52
5.3.170.0030.04014.54
5.3.160.0000.07314.47
5.3.150.0070.08014.54
5.3.140.0070.08014.51
5.3.130.0030.07314.39
5.3.120.0030.05314.40
5.3.110.0070.05014.53
5.3.100.0070.07013.94
5.3.90.0170.06313.96
5.3.80.0130.06713.76
5.3.70.0000.04013.77
5.3.60.0100.06713.77
5.3.50.0000.08313.70
5.3.40.0030.03713.88
5.3.30.0100.07013.83
5.3.20.0130.06313.63
5.3.10.0230.06013.60
5.3.00.0100.07313.59
5.2.170.0100.05011.13
5.2.160.0000.04011.11
5.2.150.0030.06711.11
5.2.140.0000.06711.29
5.2.130.0030.06311.11
5.2.120.0000.06311.06
5.2.110.0030.05711.07
5.2.100.0030.06710.91
5.2.90.0070.05711.04
5.2.80.0130.05711.07
5.2.70.0130.05311.23
5.2.60.0100.04711.19
5.2.50.0130.04710.99
5.2.40.0000.04011.13
5.2.30.0100.06010.74
5.2.20.0030.04010.73
5.2.10.0100.02310.88
5.2.00.0000.03310.55
5.1.60.0070.0539.97
5.1.50.0030.0579.82
5.1.40.0030.04310.02
5.1.30.0030.05710.53
5.1.20.0030.04710.36
5.1.10.0000.05710.02
5.1.00.0000.05710.02
5.0.50.0030.0478.53
5.0.40.0030.0478.38
5.0.30.0000.0678.30
5.0.20.0130.0308.29
5.0.10.0000.0438.29
5.0.00.0000.0538.29
4.4.90.0000.0308.29
4.4.80.0030.0378.29
4.4.70.0070.0208.29
4.4.60.0030.0308.29
4.4.50.0000.0238.29
4.4.40.0000.0638.29
4.4.30.0000.0408.29
4.4.20.0070.0338.29
4.4.10.0030.0238.29
4.4.00.0070.0478.29
4.3.110.0030.0278.29
4.3.100.0000.0308.29
4.3.90.0070.0338.29
4.3.80.0070.0508.29
4.3.70.0000.0278.29
4.3.60.0030.0278.29
4.3.50.0070.0308.29
4.3.40.0070.0408.29
4.3.30.0000.0378.29
4.3.20.0030.0378.29
4.3.10.0030.0338.29
4.3.00.0000.0378.29