3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = "abc\0def\0ghi"; var_dump(strlen($a));

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.10.0110.00816.71
7.3.00.0200.00716.34
7.2.130.0000.01316.12
7.2.120.0090.00916.18
7.2.110.0070.01016.11
7.2.100.0190.00016.34
7.2.90.0100.00916.84
7.2.80.0070.01416.44
7.2.70.0110.01116.37
7.2.60.0080.01016.68
7.2.50.0170.00916.68
7.2.40.0160.01016.52
7.2.30.0070.01016.35
7.2.20.0180.00416.39
7.2.10.0140.00316.59
7.2.00.0090.00517.66
7.1.250.0060.00915.46
7.1.200.0070.00715.57
7.1.100.0030.00918.06
7.1.70.0000.00717.16
7.1.60.0100.01419.50
7.1.50.0150.01516.65
7.1.00.0030.07322.43
7.0.200.0150.00614.70
7.0.140.0030.03322.15
7.0.110.0100.07720.07
7.0.100.0100.04719.91
7.0.90.0130.07019.91
7.0.80.0100.06020.03
7.0.70.0300.05720.04
7.0.60.0030.07720.02
7.0.50.0170.06319.93
7.0.40.0070.08719.66
7.0.30.0070.08319.74
7.0.20.0070.07319.69
7.0.10.0170.07019.71
7.0.00.0070.05019.58
5.6.280.0030.09021.04
5.6.260.0170.06720.59
5.6.250.0130.07720.71
5.6.240.0100.07320.55
5.6.230.0070.09020.62
5.6.220.0100.07720.66
5.6.210.0200.07320.61
5.6.200.0130.08020.68
5.6.190.0100.07720.69
5.6.180.0130.07320.56
5.6.170.0070.08020.56
5.6.160.0070.08020.65
5.6.150.0200.06320.65
5.6.140.0230.06320.63
5.6.130.0130.07020.55
5.6.120.0070.08720.63
5.6.110.0100.07320.57
5.6.100.0130.07720.59
5.6.90.0070.06320.67
5.6.80.0100.07320.06
5.6.70.0070.08019.91
5.6.60.0070.06719.95
5.6.50.0070.07019.95
5.6.40.0100.07319.98
5.6.30.0000.08319.97
5.6.20.0100.07720.03
5.6.10.0070.05019.93
5.6.00.0070.08019.81
5.5.380.0230.03717.54
5.5.370.0100.07717.61
5.5.360.0070.05317.51
5.5.350.0130.07317.47
5.5.340.0070.08018.13
5.5.330.0030.08317.85
5.5.320.0130.06718.16
5.5.310.0030.08718.09
5.5.300.0030.08018.13
5.5.290.0100.07018.16
5.5.280.0030.08718.09
5.5.270.0130.06317.71
5.5.260.0030.08718.02
5.5.250.0100.07717.91
5.5.240.0100.07717.41
5.5.230.0070.06717.53
5.5.220.0070.06317.22
5.5.210.0000.06017.36
5.5.200.0070.08017.12
5.5.190.0070.03717.38
5.5.180.0070.08317.45
5.5.160.0070.06717.52
5.5.150.0030.08017.59
5.5.140.0130.07017.44
5.5.130.0100.07717.36
5.5.120.0070.08317.21
5.5.110.0070.07017.51
5.5.100.0070.07017.12
5.5.90.0100.07017.10
5.5.80.0100.07317.23
5.5.70.0100.07317.10
5.5.60.0070.06717.09
5.5.50.0030.04717.40
5.5.40.0100.07017.22
5.5.30.0130.07717.34
5.5.20.0070.08017.33
5.5.10.0130.07017.12
5.5.00.0030.08717.36
5.4.450.0130.07019.45
5.4.440.0100.06019.50
5.4.430.0130.07719.35
5.4.420.0100.07319.32
5.4.410.0100.07719.20
5.4.400.0030.05319.00
5.4.390.0030.07319.01
5.4.380.0100.06718.95
5.4.370.0100.03718.95
5.4.360.0130.07018.98
5.4.350.0170.06019.12
5.4.340.0000.06719.03
5.4.320.0070.03719.27
5.4.310.0100.06318.95
5.4.300.0070.08018.98
5.4.290.0070.07719.02
5.4.280.0130.07319.13
5.4.270.0170.06719.27
5.4.260.0070.07719.00
5.4.250.0100.07719.02
5.4.240.0070.07319.07
5.4.230.0070.07019.09
5.4.220.0030.07719.00
5.4.210.0100.07319.24
5.4.200.0030.07719.13
5.4.190.0130.04719.17
5.4.180.0130.07319.00
5.4.170.0070.07019.02
5.4.160.0000.05318.93
5.4.150.0030.06319.05
5.4.140.0030.06716.18
5.4.130.0070.07316.24
5.4.120.0030.04316.21
5.4.110.0030.05016.13
5.4.100.0070.07316.13
5.4.90.0100.07016.13
5.4.80.0030.06716.39
5.4.70.0100.06316.49
5.4.60.0030.07316.35
5.4.50.0100.07316.26
5.4.40.0070.06016.40
5.4.30.0030.07716.48
5.4.20.0170.06016.34
5.4.10.0170.03716.32
5.4.00.0000.05015.59
5.3.290.0070.06714.55
5.3.280.0100.07014.59
5.3.270.0130.04014.60
5.3.260.0030.07014.52
5.3.250.0030.08014.55
5.3.240.0130.07314.66
5.3.230.0130.07314.53
5.3.220.0100.08714.42
5.3.210.0070.07014.58
5.3.200.0100.07014.63
5.3.190.0070.05014.64
5.3.180.0100.07014.46
5.3.170.0130.06714.48
5.3.160.0100.07314.38
5.3.150.0130.06714.57
5.3.140.0030.07014.47
5.3.130.0030.04014.39
5.3.120.0030.07714.37
5.3.110.0070.08014.44
5.3.100.0000.05314.05
5.3.90.0070.07713.88
5.3.80.0030.04014.09
5.3.70.0070.04014.09
5.3.60.0100.07313.94
5.3.50.0100.04313.88
5.3.40.0100.07014.04
5.3.30.0030.07013.96
5.3.20.0100.06013.47
5.3.10.0070.06313.67
5.3.00.0100.05313.64
5.2.170.0000.04711.16
5.2.160.0100.05311.07
5.2.150.0100.03011.07
5.2.140.0000.03311.03
5.2.130.0030.04311.16
5.2.120.0100.02711.10
5.2.110.0000.07011.03
5.2.100.0000.06311.05
5.2.90.0000.06311.11
5.2.80.0000.05011.25
5.2.70.0000.06311.08
5.2.60.0030.06310.97
5.2.50.0000.06310.92
5.2.40.0070.05710.90
5.2.30.0130.05310.91
5.2.20.0030.06310.84
5.2.10.0070.05310.71
5.2.00.0030.06010.62
5.1.60.0000.03010.06
5.1.50.0100.0439.93
5.1.40.0070.0509.91
5.1.30.0070.05010.32
5.1.20.0000.06010.27
5.1.10.0070.0509.96
5.1.00.0030.05310.31
5.0.50.0030.0409.88
5.0.40.0030.0339.88
5.0.30.0070.0409.88
5.0.20.0030.0439.88
5.0.10.0000.0339.88
5.0.00.0030.0609.88
4.4.90.0100.0239.88
4.4.80.0000.0339.88
4.4.70.0000.0409.88
4.4.60.0000.0379.88
4.4.50.0070.0139.88
4.4.40.0000.0539.88
4.4.30.0030.0339.88
4.4.20.0070.0279.88
4.4.10.0030.0309.88
4.4.00.0030.0379.88
4.3.110.0000.0379.88
4.3.100.0070.0279.88
4.3.90.0070.0209.88
4.3.80.0030.0539.88
4.3.70.0000.0379.88
4.3.60.0070.0279.88
4.3.50.0030.0339.88
4.3.40.0100.0479.88
4.3.30.0000.0379.88
4.3.20.0000.0279.88
4.3.10.0000.0379.88
4.3.00.0000.0379.88