3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo strlen("0132"); echo '<hr>'; echo strlen('0132');

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.0090.00316.26
7.2.00.0070.00719.01
7.1.200.0060.00315.73
7.1.100.0100.00317.85
7.1.70.0000.00717.01
7.1.60.0000.01117.16
7.1.50.0000.02116.70
7.1.00.0030.07722.57
7.0.200.0000.00816.81
7.0.140.0100.06721.97
7.0.120.0100.06722.00
7.0.60.0070.05319.78
7.0.50.0070.04317.67
7.0.40.0200.07720.42
7.0.30.0200.04320.01
7.0.20.0300.07720.20
7.0.10.0170.08020.09
7.0.00.0000.04720.08
5.6.280.0100.06721.14
5.6.210.0030.08320.47
5.6.200.0130.07318.22
5.6.190.0070.04020.49
5.6.180.4200.04720.60
5.6.170.0200.04320.52
5.6.160.0070.04020.41
5.6.150.0030.04018.11
5.6.140.0000.04318.12
5.6.130.0030.04718.18
5.6.120.0130.07321.01
5.6.110.0100.07720.99
5.6.100.0030.08720.97
5.6.90.0200.06720.96
5.6.80.0170.07020.36
5.6.70.4400.04020.52
5.5.350.0270.04020.39
5.5.340.0100.08317.98
5.5.330.0030.09020.07
5.5.320.0330.07320.24
5.5.310.0370.07020.29
5.5.300.0130.05017.97
5.5.290.0070.08018.00
5.5.280.0170.07320.79
5.5.270.0030.06720.79
5.5.260.0030.07020.79
5.5.250.0100.08020.68
5.5.240.0300.04020.14
5.4.450.0670.04319.38
5.4.440.0670.05019.42
5.4.430.0530.04019.53
5.4.420.0730.03319.42
5.4.410.0470.04319.26
5.4.400.0400.04019.15
5.4.390.0730.04019.16
5.4.380.0570.04018.88
5.4.370.0430.04019.21
5.4.360.0600.04719.21
5.4.350.0570.04719.25
5.4.340.0370.04719.23
5.4.320.0400.04719.15
5.4.310.0570.04718.90
5.4.300.0430.05019.13
5.4.290.0830.03319.05
5.4.280.0770.04318.93
5.4.270.0300.04018.92
5.4.260.0600.03318.76
5.4.250.0200.05018.87
5.4.240.0270.04319.02
5.4.230.0730.04719.20
5.4.220.0670.03719.09
5.4.210.0570.04018.92
5.4.200.0970.03319.21
5.4.190.0870.04319.05
5.4.180.0830.04019.14
5.4.170.0730.03018.86
5.4.160.0870.04019.21
5.4.150.0800.04018.86
5.4.140.0270.04316.16
5.4.130.0370.03316.26
5.4.120.1000.04016.26
5.4.110.0270.04716.06
5.4.100.0530.02716.43
5.4.90.0270.04316.45
5.4.80.0300.03316.21
5.4.70.0270.04016.26
5.4.60.0170.04016.36
5.4.50.0730.04016.40
5.4.40.0870.02716.36
5.4.30.0800.02716.29
5.4.20.0670.03716.36
5.4.10.0600.03316.34
5.4.00.0400.03716.02
5.3.290.0670.03316.02
5.3.280.0270.03716.02
5.3.270.0500.03316.02
5.3.260.0530.03716.02
5.3.250.0770.03316.02
5.3.240.0230.05316.02
5.3.230.0570.03316.02
5.3.220.0800.03016.02
5.3.210.0630.04016.02
5.3.200.0600.04016.02
5.3.190.0870.03016.02
5.3.180.0500.03316.02
5.3.170.0630.04016.02
5.3.160.0500.03716.02
5.3.150.0870.03716.02
5.3.140.0600.03016.02
5.3.130.0700.03716.02
5.3.120.0670.08016.02
5.3.110.0700.04316.02
5.3.100.1070.03316.02
5.3.90.0570.04316.02
5.3.80.0670.04316.02
5.3.70.0370.03716.02
5.3.60.0770.04316.02
5.3.50.0970.03016.02
5.3.40.0530.03316.02
5.3.30.0830.04316.02
5.3.20.0430.04016.02
5.3.10.0400.03316.02
5.3.00.0730.03716.02
5.2.170.0600.03016.02
5.2.160.0430.02716.02
5.2.150.0570.04016.02
5.2.140.0630.02716.02
5.2.130.0670.02716.02
5.2.120.0430.03016.02
5.2.110.0570.02716.02
5.2.100.0330.03716.02
5.2.90.0500.03016.02
5.2.80.0230.02716.02
5.2.70.0370.03016.02
5.2.60.0430.03016.02
5.2.50.0370.03016.02
5.2.40.0300.02316.02
5.2.30.0530.02316.02
5.2.20.0470.02016.02
5.2.10.0100.03316.02
5.2.00.0300.02316.02
5.1.60.0270.03016.02
5.1.50.0470.02016.01
5.1.40.0330.02716.01
5.1.30.0270.02316.01
5.1.20.0500.02716.01
5.1.10.0370.02316.01
5.1.00.0430.02716.01
5.0.50.0100.02716.01
5.0.40.0370.03016.01
5.0.30.0130.03016.01
5.0.20.0030.02316.01
5.0.10.0030.02316.01
5.0.00.0130.02716.01
4.4.90.0330.01716.02
4.4.80.0130.02016.02
4.4.70.0170.02016.02
4.4.60.0300.01716.02
4.4.50.0130.01316.02
4.4.40.0270.02716.02
4.4.30.0070.01716.01
4.4.20.0130.02016.01
4.4.10.0230.02016.01
4.4.00.0270.02716.01
4.3.110.0170.01316.01
4.3.100.0170.01316.01
4.3.90.0230.01316.01
4.3.80.0300.02016.01
4.3.70.0030.01316.01
4.3.60.0130.01716.01
4.3.50.0200.01316.01
4.3.40.0330.02716.01
4.3.30.0070.01716.01
4.3.20.0130.01316.01
4.3.10.0070.01316.01
4.3.00.0100.01316.01