3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $some_string = "1"; echo base_convert($some_string, 10, 1);

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.00719.07
7.1.100.0040.00717.92
7.1.70.0000.00916.89
7.1.60.0030.00919.46
7.1.50.0090.01316.86
7.1.00.0030.07722.36
7.0.200.0060.00316.56
7.0.140.0030.07321.99
7.0.60.0100.08020.02
7.0.50.0100.06017.82
7.0.40.0000.05720.23
7.0.30.0300.03720.20
7.0.20.0200.05020.16
7.0.10.0100.05720.20
7.0.00.0100.04320.19
5.6.280.0000.07721.06
5.6.210.0100.08320.46
5.6.200.0070.07018.13
5.6.190.0130.08020.63
5.6.180.0070.08320.33
5.6.170.0200.05020.45
5.6.160.0130.03320.38
5.6.150.0030.06318.11
5.6.140.0100.08018.12
5.6.130.0000.09018.15
5.6.120.0130.07720.98
5.6.110.0070.08320.88
5.6.100.0030.04021.02
5.6.90.0100.06021.12
5.6.80.0170.06720.37
5.5.350.0000.04020.29
5.5.340.0000.04317.91
5.5.330.0030.04720.19
5.5.320.0230.08720.50
5.5.310.0430.06020.27
5.5.300.0100.07717.91
5.5.290.0070.08317.96
5.5.280.0070.04020.64
5.5.270.0070.03720.87
5.5.260.0130.07320.87
5.5.250.0030.05320.62
5.5.240.0030.07720.22
5.4.450.0570.06019.61
5.4.440.0600.05719.24
5.4.430.0230.04719.44
5.4.420.0300.06319.39
5.4.410.0130.05319.33
5.4.400.0270.04019.13
5.4.390.0130.07719.20
5.4.380.0230.07018.78
5.4.370.0230.04318.57
5.4.360.0500.04018.70
5.4.350.0130.05718.54
5.4.340.0170.05318.63
5.4.320.0110.04412.45
5.4.310.0110.04812.45
5.4.300.0080.03512.45
5.4.290.0140.09512.45
5.4.280.0120.05212.34
5.4.270.0120.07112.35
5.4.260.0150.06312.35
5.4.250.0090.04812.35
5.4.240.0080.04512.35
5.4.230.0090.04812.34
5.4.220.0150.06812.34
5.4.210.0100.10212.34
5.4.200.0080.06012.34
5.4.190.0080.03912.33
5.4.180.0080.05412.33
5.4.170.0080.03912.34
5.4.160.0110.03612.34
5.4.150.0080.03812.34
5.4.140.0040.04512.02
5.4.130.0060.04012.01
5.4.120.0020.04511.96
5.4.110.0110.04111.96
5.4.100.0100.03611.97
5.4.90.0060.05711.96
5.4.80.0070.05611.96
5.4.70.0100.06911.96
5.4.60.0160.07011.96
5.4.50.0100.07211.96
5.4.40.0080.08011.95
5.4.30.0050.08011.95
5.4.20.0070.05611.95
5.4.10.0080.05611.95
5.4.00.0120.05511.43
5.3.290.0110.05312.80
5.3.280.0110.04912.71
5.3.270.0140.07512.72
5.3.260.0060.06512.72
5.3.250.0140.06212.72
5.3.240.0080.05612.72
5.3.230.0080.04412.71
5.3.220.0080.04212.68
5.3.210.0040.04212.68
5.3.200.0090.03812.68
5.3.190.0110.03512.67
5.3.180.0050.04012.68
5.3.170.0090.05312.67
5.3.160.0140.07612.67
5.3.150.0140.07712.68
5.3.140.0080.05012.66
5.3.130.0070.05312.66
5.3.120.0100.05212.65
5.3.110.0040.05812.66
5.3.100.0230.08812.12
5.3.90.0050.05312.09
5.3.80.0130.06412.08
5.3.70.0150.07612.07
5.3.60.0060.04812.06
5.3.50.0080.03612.00
5.3.40.0060.04312.00
5.3.30.0050.03811.94
5.3.20.0110.04511.72
5.3.10.0050.05911.69
5.3.00.0070.05011.67
5.2.170.0130.0669.18
5.2.160.0050.0369.18
5.2.150.0060.0479.18
5.2.140.0040.0439.18
5.2.130.0170.0529.14
5.2.120.0110.0449.13
5.2.110.0120.0579.14
5.2.100.0110.0409.14
5.2.90.0090.0499.14
5.2.80.0070.0679.13
5.2.70.0110.0399.13
5.2.60.0090.0389.09
5.2.50.0080.0559.05
5.2.40.0130.0599.03
5.2.30.0100.0599.00
5.2.20.0110.0328.99
5.2.10.0060.0348.92
5.2.00.0090.0368.77
5.1.60.0090.0488.06
5.1.50.0130.0308.06
5.1.40.0080.0368.04
5.1.30.0070.0398.39
5.1.20.0080.0598.41
5.1.10.0050.0378.13
5.1.00.0110.0458.13
5.0.50.0080.0286.61
5.0.40.0050.0296.47
5.0.30.0080.0426.29
5.0.20.0040.0266.25
5.0.10.0070.0476.23
5.0.00.0040.0576.23
4.4.90.0080.0324.78
4.4.80.0070.0344.75
4.4.70.0030.0234.76
4.4.60.0070.0344.75
4.4.50.0090.0424.77
4.4.40.0000.0314.70
4.4.30.0040.0214.76
4.4.20.0040.0244.84
4.4.10.0040.0234.85
4.4.00.0080.0374.76
4.3.110.0140.0624.67
4.3.100.0090.0184.67
4.3.90.0030.0204.64
4.3.80.0040.0264.59
4.3.70.0070.0114.63
4.3.60.0050.0134.63
4.3.50.0040.0274.62
4.3.40.0060.0424.54
4.3.30.0020.0253.27
4.3.20.0030.0223.25
4.3.10.0030.0253.22
4.3.00.0070.0177.24