3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $code = "12345003"; echo mb_substr($code, -3);

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.0060.00916.53
7.3.00.0070.00716.61
7.2.130.0040.01116.72
7.2.120.0060.00916.73
7.2.110.0040.01117.02
7.2.100.0050.00516.78
7.2.90.0040.00816.80
7.2.80.0090.00616.87
7.2.70.0030.00616.88
7.2.60.0070.00816.94
7.2.50.0060.00316.68
7.2.40.0040.00716.62
7.2.30.0080.00616.74
7.2.20.0100.00716.77
7.2.10.0100.00716.84
7.2.00.0560.00816.74
7.1.250.0060.00615.59
7.1.200.0050.00515.60
7.1.100.0030.00818.13
7.1.70.0040.00816.81
7.1.60.0130.01319.34
7.1.50.0130.01016.98
7.1.00.0030.07722.43
7.0.200.0040.00416.48
7.0.140.0000.03722.15
7.0.60.0130.07319.85
7.0.50.0100.08017.90
7.0.40.0100.03720.04
7.0.30.0200.08320.16
7.0.20.0270.07720.00
7.0.10.0100.05320.32
7.0.00.0000.04320.12
5.6.280.0070.08321.09
5.6.210.0200.06720.56
5.6.200.0070.08718.15
5.6.190.0100.08020.32
5.6.180.0530.05020.56
5.6.170.0200.04020.46
5.6.160.0030.04020.47
5.6.150.0070.03718.16
5.6.140.0170.07018.18
5.6.130.0100.04718.16
5.6.120.0030.04321.11
5.6.110.0000.07320.95
5.6.100.0070.06721.03
5.6.90.0030.05721.03
5.6.80.0130.07020.52
5.5.350.0200.08320.48
5.5.340.0030.08018.01
5.5.330.0170.07320.19
5.5.320.0270.08720.30
5.5.310.0230.07020.20
5.5.300.0070.04717.96
5.5.290.0030.08018.07
5.5.280.0070.04720.76
5.5.270.0100.07320.82
5.5.260.0000.06320.82
5.5.250.0030.05720.77
5.5.240.0030.08320.25
5.4.450.0630.06719.28
5.4.440.0570.05719.63
5.4.430.0100.05019.46
5.4.420.0130.05719.14
5.4.410.0130.05019.35
5.4.400.0170.05319.20
5.4.390.0100.05019.25
5.4.380.0130.05019.16
5.4.370.0130.05319.00
5.4.360.0070.05319.26
5.4.350.0070.03611.97
5.4.340.0060.03511.96
5.4.320.0070.03912.45
5.4.310.0040.04012.45
5.4.300.0060.04512.45
5.4.290.0060.04112.45
5.4.280.0050.03612.34
5.4.270.0100.03312.34
5.4.260.0080.04012.34
5.4.250.0070.03712.35
5.4.240.0070.04912.35
5.4.230.0070.04812.34
5.4.220.0090.04112.34
5.4.210.0030.03812.34
5.4.200.0060.03712.34
5.4.190.0090.03612.33
5.4.180.0090.03812.34
5.4.170.0030.03912.35
5.4.160.0060.03712.34
5.4.150.0100.04012.34
5.4.140.0080.03712.02
5.4.130.0130.03412.01
5.4.120.0080.03611.97
5.4.110.0030.04411.96
5.4.100.0060.04411.96
5.4.90.0040.04111.96
5.4.80.0050.05011.96
5.4.70.0060.03811.96
5.4.60.0060.04711.96
5.4.50.0080.04011.96
5.4.40.0090.03911.95
5.4.30.0080.03511.95
5.4.20.0040.03711.95
5.4.10.0060.03511.95
5.4.00.0090.04411.44
5.3.290.0060.04712.80
5.3.280.0050.04212.70
5.3.270.0080.03912.72
5.3.260.0100.04112.72
5.3.250.0090.03612.72
5.3.240.0060.04512.72
5.3.230.0080.04412.71
5.3.220.0090.03712.68
5.3.210.0110.05612.68
5.3.200.0050.05012.68
5.3.190.0130.04112.68
5.3.180.0090.04412.67
5.3.170.0100.03812.67
5.3.160.0120.04812.67
5.3.150.0060.05112.68
5.3.140.0110.04712.66
5.3.130.0060.04912.66
5.3.120.0150.04412.66
5.3.110.0080.04112.66
5.3.100.0090.03912.12
5.3.90.0060.04412.08
5.3.80.0110.03212.08
5.3.70.0070.04012.07
5.3.60.0050.04012.06
5.3.50.0040.03912.00
5.3.40.0080.03712.00
5.3.30.0080.03711.94
5.3.20.0040.03711.71
5.3.10.0050.03911.69
5.3.00.0060.03711.67
5.2.170.0040.0359.18
5.2.160.0050.0359.18
5.2.150.0070.0309.18
5.2.140.0050.0339.18
5.2.130.0060.0319.14
5.2.120.0050.0299.13
5.2.110.0030.0359.14
5.2.100.0100.0319.13
5.2.90.0070.0329.14
5.2.80.0040.0319.13
5.2.70.0070.0299.13
5.2.60.0070.0299.08
5.2.50.0060.0359.05
5.2.40.0100.0349.03
5.2.30.0060.0339.01
5.2.20.0050.0298.99
5.2.10.0040.0308.91
5.2.00.0080.0308.77
5.1.60.0090.0298.06
5.1.50.0060.0288.05
5.1.40.0040.0398.04
5.1.30.0040.0298.39
5.1.20.0050.0318.41
5.1.10.0060.0248.13
5.1.00.0090.0248.14
5.0.50.0060.0266.61
5.0.40.0060.0186.47
5.0.30.0060.0336.28
5.0.20.0030.0276.26
5.0.10.0040.0236.23
5.0.00.0050.0316.22
4.4.90.0040.0184.78
4.4.80.0060.0194.75
4.4.70.0030.0214.75
4.4.60.0030.0184.75
4.4.50.0050.0194.77
4.4.40.0040.0254.71
4.4.30.0040.0184.76
4.4.20.0050.0144.84
4.4.10.0050.0184.85
4.4.00.0050.0234.76
4.3.110.0030.0184.67
4.3.100.0040.0174.66
4.3.90.0050.0144.64
4.3.80.0030.0314.59
4.3.70.0040.0174.63
4.3.60.0040.0154.63
4.3.50.0040.0164.63
4.3.40.0040.0294.54
4.3.30.0060.0603.28
4.3.20.0060.0213.25
4.3.10.0030.0183.21
4.3.00.0130.0206.96