3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $test = file_get_contents("http://pbs.twimg.com/media/COMiwt-XAAAxOZ0.jpg"); $test = base64_encode($test); $test = '<img src="data:image/jpeg;base64,' . $test . '" />'; echo $test; ?>

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.0120.00016.86
7.3.00.0060.00617.07
7.2.130.0060.00316.97
7.2.120.0070.00617.23
7.2.110.0060.00616.90
7.2.100.0060.00317.29
7.2.90.0040.01117.24
7.2.80.0030.00617.05
7.2.70.0040.01117.29
7.2.60.0070.00717.06
7.2.50.0000.01417.28
7.2.40.0040.00717.23
7.2.30.0080.00816.93
7.2.20.0070.00717.11
7.2.10.0030.00717.28
7.2.00.0050.00718.43
7.1.250.0100.00715.65
7.1.200.0030.01016.16
7.1.100.0130.00718.35
7.1.70.0030.00617.66
7.1.60.0130.01020.03
7.1.50.0090.01517.20
7.1.00.0070.07322.71
7.0.200.0080.00416.99
7.0.60.0170.07020.43
7.0.50.0130.07718.13
7.0.40.0070.05320.56
7.0.30.0270.04720.54
7.0.20.0430.07020.57
7.0.10.0170.08720.50
7.0.00.0030.04720.51
5.6.280.0000.03321.34
5.6.210.0100.07020.96
5.6.200.0070.08318.52
5.6.190.0070.04321.06
5.6.180.0170.04721.05
5.6.170.0330.03720.97
5.6.160.0070.08320.84
5.6.150.0070.05718.47
5.6.140.0100.07718.39
5.6.130.0130.07018.41
5.6.120.0130.05721.53
5.6.110.0070.03721.38
5.6.100.0130.07021.33
5.6.90.0070.03721.48
5.6.80.0070.07320.88
5.6.70.2700.02320.70
5.5.350.0100.03020.76
5.5.340.0100.06318.25
5.5.330.0070.04320.84
5.5.320.0300.07720.69
5.5.310.0230.08020.77
5.5.300.0100.08018.37
5.5.290.0030.05718.25
5.5.280.0070.08721.30
5.5.270.0070.07021.23
5.5.260.0130.06721.20
5.5.250.0030.04720.89
5.5.240.0200.03020.63
5.4.450.0130.07019.68
5.4.440.0370.08019.68
5.4.430.0170.05319.61
5.4.420.0200.05319.61
5.4.410.0230.04319.53
5.4.400.0230.05319.27
5.4.390.0230.05319.23
5.4.380.0300.04719.32
5.4.370.0300.04319.28
5.4.360.0270.04319.51
5.4.350.0330.04719.23
5.4.340.0370.06719.43
5.4.320.0370.07319.31
5.4.310.0200.05719.45
5.4.300.0230.05319.36
5.4.290.0330.04319.35
5.4.280.0270.05719.37
5.4.270.0270.05719.43
5.4.260.0200.05719.30
5.4.250.0270.04719.40
5.4.240.0230.05719.40
5.4.230.0230.05019.42
5.4.220.0170.06019.52
5.4.210.0300.04319.29
5.4.200.0270.05016.99
5.4.190.0430.06319.43
5.4.180.0130.06019.13
5.4.170.0370.06019.43
5.4.160.1100.04719.29
5.4.150.0230.05019.50
5.4.140.0600.06716.63
5.4.130.0170.07716.73
5.4.120.0270.04316.71
5.4.110.0230.04316.74
5.4.100.0570.05016.68
5.4.90.0230.05316.62
5.4.80.0230.04316.73
5.4.70.0300.07316.58
5.4.60.0200.04717.02
5.4.50.0070.07317.07
5.4.40.0170.05317.06
5.4.30.0200.05317.00
5.4.20.0370.05716.97
5.3.290.1300.04314.75
5.3.280.1370.04314.77
5.3.270.0530.06014.63
5.3.260.1530.02714.78
5.3.250.1630.02714.66
5.3.240.1270.02714.54
5.3.230.0770.03314.77
5.3.220.1230.03314.71
5.3.210.1170.03714.75
5.3.200.0100.04014.82
5.3.190.0370.03314.82
5.3.180.1200.02714.73
5.3.170.1270.03714.78