3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str = 'the quick brown fox jumps over the lazy dog.'; echo str_replace('the','That',$str); ?>

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.0030.00619.20
7.1.100.0070.00717.75
7.1.70.0000.00717.16
7.1.60.0060.01019.70
7.1.50.0120.00916.69
7.1.00.0070.07322.54
7.0.200.0190.00016.36
7.0.140.0000.07722.11
7.0.60.0070.03719.94
7.0.50.0100.06717.90
7.0.40.0070.08020.04
7.0.30.0430.06720.18
7.0.20.0370.07020.04
7.0.10.0030.04720.13
7.0.00.0070.07020.18
5.6.280.0030.07320.81
5.6.210.0100.03720.49
5.6.200.0100.08018.11
5.6.190.0100.07020.61
5.6.180.0470.04320.63
5.6.170.0400.06720.41
5.6.160.0170.07020.46
5.6.150.0030.05318.09
5.6.140.0030.08018.12
5.6.130.0100.08318.16
5.6.120.0000.05020.98
5.6.110.0130.08321.03
5.6.100.0130.07721.09
5.6.90.0030.04021.09
5.6.80.0100.03720.52
5.5.350.3770.04020.40
5.5.340.0100.03317.88
5.5.330.0070.07720.14
5.5.320.0000.06720.31
5.5.310.0400.04320.13
5.5.300.0070.08017.90
5.5.290.0070.08017.92
5.5.280.0030.04320.76
5.5.270.0130.08020.83
5.5.260.0130.07720.89
5.5.250.0070.08720.66
5.5.240.0200.02720.06
5.4.450.0030.08019.11
5.4.440.0030.08319.46
5.4.430.0030.05019.38
5.4.420.0070.07319.41
5.4.410.0030.06719.28
5.4.400.0030.05019.16
5.4.390.0000.04318.88
5.4.380.0030.05019.10
5.4.370.0030.07318.79
5.4.360.0100.06718.88
5.4.350.0000.05319.09
5.4.340.0000.05319.08
5.4.320.0070.04019.24
5.4.310.0030.05319.21
5.4.300.0030.08018.92
5.4.290.0030.07718.79
5.4.280.0030.03718.88
5.4.270.0000.04018.80
5.4.260.0000.04018.91
5.4.250.0030.07019.15
5.4.240.0000.05018.93
5.4.230.0030.07018.91
5.4.220.0030.05719.08
5.4.210.0030.07319.09
5.4.200.0030.08019.09
5.4.190.0070.04719.25
5.4.180.0100.06718.77
5.4.170.0030.04019.08
5.4.160.0030.04319.08
5.4.150.0030.04318.78
5.4.140.0030.07716.38
5.4.130.0070.06716.45
5.4.120.0030.07316.23
5.4.110.0000.07016.34
5.4.100.0030.07016.38
5.4.90.0030.07016.48
5.4.80.0000.05316.41
5.4.70.0030.06716.23
5.4.60.0000.07716.36
5.4.50.0100.06316.36
5.4.40.0030.07016.27
5.4.30.0100.06316.28
5.4.20.0100.06316.28
5.4.10.0030.07316.20
5.4.00.0000.07015.67
5.3.290.0100.05714.59
5.3.280.0030.06314.64
5.3.270.0030.07014.64
5.3.260.0070.04014.44
5.3.250.0070.04014.44
5.3.240.0030.05714.46
5.3.230.0000.05314.52
5.3.220.0000.05714.50
5.3.210.0030.07714.40
5.3.200.0070.04314.41
5.3.190.0030.05714.42
5.3.180.0000.07714.51
5.3.170.0030.04314.58
5.3.160.0070.06314.61
5.3.150.0030.07314.43
5.3.140.0030.07714.58
5.3.130.0000.08014.48
5.3.120.0030.07314.39
5.3.110.0030.07014.63
5.3.100.0000.06714.08
5.3.90.0030.04714.00
5.3.80.0030.07014.10
5.3.70.0030.05013.97
5.3.60.0030.05713.77
5.3.50.0030.07313.78
5.3.40.0170.03713.77
5.3.30.0030.07313.73
5.3.20.0070.06713.56
5.3.10.0030.06713.72
5.3.00.0030.04313.59
5.2.170.0000.04012.34
5.2.160.0070.06012.34
5.2.150.0030.05012.34
5.2.140.0000.06712.34
5.2.130.0000.03712.34
5.2.120.0000.04012.34
5.2.110.0030.05012.34
5.2.100.0030.03312.34
5.2.90.0000.03312.34
5.2.80.0000.06712.34
5.2.70.0000.06712.34
5.2.60.0030.05712.34
5.2.50.0000.04312.34
5.2.40.0000.05712.34
5.2.30.0000.05312.34
5.2.20.0000.06012.34
5.2.10.0100.05712.34
5.2.00.0030.06012.34
5.1.60.0070.04012.34
5.1.50.0000.02712.34
5.1.40.0030.03012.34
5.1.30.0000.03012.34
5.1.20.0000.06012.34
5.1.10.0030.03712.34
5.1.00.0030.04312.34
5.0.50.0070.03712.34
5.0.40.0000.04312.34
5.0.30.0030.06012.34
5.0.20.0130.03312.34
5.0.10.0070.02312.34
5.0.00.0000.03712.34
4.4.90.0000.03712.34
4.4.80.0000.03712.34
4.4.70.0000.03712.34
4.4.60.0000.03712.34
4.4.50.0030.03312.34
4.4.40.0000.03012.34
4.4.30.0000.03012.34
4.4.20.0000.03312.34
4.4.10.0000.02312.34
4.4.00.0000.05712.34
4.3.110.0030.02712.34
4.3.100.0000.03012.34
4.3.90.0030.02012.34
4.3.80.0000.03312.34
4.3.70.0030.03012.34
4.3.60.0030.02312.34
4.3.50.0000.03712.34
4.3.40.0030.04012.34
4.3.30.0000.02312.34
4.3.20.0030.02012.34
4.3.10.0000.03012.34
4.3.00.0000.02312.34