3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $var = 'foo'; $string = 'this is a string with $var'; echo '[$3] [$ 3] [$3.2]';

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.0rc40.0170.00798.97
7.3.0rc30.0070.01415.88
7.3.0beta10.0040.00412.61
7.3.0alpha10.0050.00512.59
7.2.60.0030.01016.61
7.2.00.0030.01319.08
7.1.200.0030.00615.59
7.1.100.0000.01017.54
7.1.70.0070.00716.98
7.1.60.0170.00719.32
7.1.50.0030.00916.86
7.1.00.0070.07322.51
7.0.200.0030.01016.70
7.0.140.0030.07322.18
7.0.110.0170.04719.92
7.0.100.0130.04020.08
7.0.90.0100.07020.05
7.0.80.0200.07319.91
7.0.70.0170.07719.93
7.0.60.0070.06019.93
7.0.50.0230.07719.98
7.0.40.0030.08319.65
7.0.30.0030.03719.73
7.0.20.0030.07319.64
7.0.10.0000.05319.71
7.0.00.0100.04019.65
5.6.280.0070.06720.98
5.6.260.0070.04720.62
5.6.250.0070.07320.68
5.6.240.0030.05020.71
5.6.230.0100.07720.68
5.6.220.0100.07320.64
5.6.210.0070.07720.80
5.6.200.0030.07020.56
5.6.190.0000.04720.69
5.6.180.0170.04720.61
5.6.170.0070.03720.65
5.6.160.0030.04720.61
5.6.150.0030.04020.55
5.6.140.0030.04720.55
5.6.130.0070.07020.64
5.6.120.0170.07720.54
5.6.110.0130.07720.62
5.6.100.0130.05320.53
5.6.90.0030.08020.83
5.6.80.0070.04719.99
5.6.70.0100.07320.06
5.6.60.0070.07719.83
5.6.50.0000.07319.99
5.6.40.0070.04020.01
5.6.30.0030.05020.05
5.6.20.0230.05719.92
5.6.10.0100.07019.97
5.6.00.0100.07719.90
5.5.380.0070.04317.39
5.5.370.0100.07317.53
5.5.360.0000.04017.61
5.5.350.0070.08017.77
5.5.340.0130.05718.13
5.5.330.0170.06318.09
5.5.320.0070.06717.87
5.5.310.0130.07317.98
5.5.300.0130.07717.86
5.5.290.0100.05317.86
5.5.280.0070.07017.89
5.5.270.0070.07317.84
5.5.260.0000.08717.88
5.5.250.0230.03017.66
5.5.240.0130.07017.23
5.5.230.0030.07717.54
5.5.220.0030.05017.53
5.5.210.0070.05317.48
5.5.200.0100.05717.12
5.5.190.0100.05017.60
5.5.180.0030.07717.11
5.5.160.0030.05717.44
5.5.150.0100.07017.47
5.5.140.0130.06717.47
5.5.130.0030.04717.21
5.5.120.0070.04317.51
5.5.110.0000.04317.46
5.5.100.0130.07017.38
5.5.90.0100.07317.41
5.5.80.0070.05017.37
5.5.70.0070.04317.34
5.5.60.0130.07017.26
5.5.50.0070.07017.34
5.5.40.0100.04317.27
5.5.30.0100.07717.13
5.5.20.0070.05017.48
5.5.10.0170.04317.26
5.5.00.0170.05717.39
5.4.450.0070.06019.36
5.4.440.0070.04719.37
5.4.430.0100.04319.44
5.4.420.0130.06319.27
5.4.410.0030.04719.27
5.4.400.0070.04318.93
5.4.390.0130.07719.16
5.4.380.0130.06719.01
5.4.370.0100.03319.11
5.4.360.0030.04719.14
5.4.350.0070.06019.20
5.4.340.0170.06319.16
5.4.320.0070.08018.95
5.4.310.0100.04018.93
5.4.300.0100.07019.09
5.4.290.0100.06718.92
5.4.280.0130.06719.24
5.4.270.0130.06319.27
5.4.260.0070.05719.25
5.4.250.0070.04318.92
5.4.240.0100.06319.24
5.4.230.0000.07718.94
5.4.220.0170.05718.99
5.4.210.0100.06719.09
5.4.200.0200.05018.94
5.4.190.0070.06318.99
5.4.180.0130.03319.15
5.4.170.0130.07018.94
5.4.160.0030.08019.26
5.4.150.0070.08019.00
5.4.140.0000.06716.22
5.4.130.0100.06716.33
5.4.120.0100.06016.33
5.4.110.0070.07716.23
5.4.100.0000.05316.54
5.4.90.0130.05716.37
5.4.80.0070.07016.34
5.4.70.0030.06316.23
5.4.60.0100.06716.50
5.4.50.0070.04016.50
5.4.40.0030.06016.54
5.4.30.0030.06316.49
5.4.20.0030.04316.34
5.4.10.0030.04016.25
5.4.00.0130.06015.70
5.3.290.0100.07714.72
5.3.280.0070.07314.50
5.3.270.0070.08014.49
5.3.260.0000.06314.45
5.3.250.0000.04714.46
5.3.240.0070.06314.49
5.3.230.0100.05714.54
5.3.220.0000.04014.47
5.3.210.0030.08014.55
5.3.200.0100.07314.49
5.3.190.0100.06314.44
5.3.180.0000.05014.45
5.3.170.0200.06314.48
5.3.160.0030.05314.40
5.3.150.0070.04014.49
5.3.140.0100.05014.47
5.3.130.0030.07714.54
5.3.120.0030.05014.64
5.3.110.0070.04014.32
5.3.100.0000.04714.05
5.3.90.0200.05714.02
5.3.80.0030.03713.94
5.3.70.0070.05313.89
5.3.60.0100.06313.93
5.3.50.0000.06313.76
5.3.40.0070.07013.76
5.3.30.0070.05013.84
5.3.20.0030.06013.53
5.3.10.0100.07013.75
5.3.00.0100.06013.65
5.2.170.0030.03711.92
5.2.160.0070.04311.92
5.2.150.0000.06011.92
5.2.140.0030.06011.92
5.2.130.0100.05711.92
5.2.120.0030.06011.92
5.2.110.0070.06011.92
5.2.100.0130.04711.92
5.2.90.0000.05311.92
5.2.80.0000.04311.92
5.2.70.0070.04711.92
5.2.60.0000.05311.92
5.2.50.0030.06311.92
5.2.40.0070.05711.92
5.2.30.0030.05311.92
5.2.20.0070.05011.92
5.2.10.0070.05311.92
5.2.00.0030.04311.92
5.1.60.0030.05311.92
5.1.50.0030.03311.92
5.1.40.0030.03311.92
5.1.30.0000.03311.92
5.1.20.0000.03011.92
5.1.10.0000.02711.92
5.1.00.0030.04011.92
5.0.50.0070.02311.92
5.0.40.0030.04311.92
5.0.30.0000.05311.92
5.0.20.0030.01711.92
5.0.10.0070.03711.92
5.0.00.0000.05711.92
4.4.90.0000.03711.92
4.4.80.0000.03311.92
4.4.70.0030.02711.92
4.4.60.0030.03011.92
4.4.50.0030.02011.92
4.4.40.0000.02711.92
4.4.30.0030.03011.92
4.4.20.0000.01711.92
4.4.10.0000.01711.92
4.4.00.0030.02711.92
4.3.110.0000.02011.92
4.3.100.0030.03011.92
4.3.90.0000.02011.92
4.3.80.0100.04311.92
4.3.70.0030.03011.92
4.3.60.0000.02011.92
4.3.50.0030.03311.92
4.3.40.0030.03311.92
4.3.30.0000.03311.92
4.3.20.0100.00711.92
4.3.10.0000.03311.92
4.3.00.0000.03711.92