3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $search = htmlentities("(apple|phpinfo())/e\0"); if (strpos($search, 'apple') !== false){ echo preg_replace("/".$search."/", $search, "apple"); }else echo "Please search for apple, orange, banana, or kiwi.";
based on 6BTcZ

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.0070.00716.67
7.3.00.0090.00416.68
7.2.130.0020.01216.93
7.2.120.0050.01017.00
7.2.110.0060.00716.71
7.2.100.0060.00616.82
7.2.90.0030.01216.97
7.2.80.0080.00916.91
7.2.70.0080.00316.86
7.2.60.0030.00916.94
7.2.50.0070.00816.91
7.2.40.0030.00817.00
7.2.30.0050.00716.87
7.2.20.0020.01216.82
7.2.10.0010.00916.86
7.2.00.0010.01117.72
7.1.250.0050.00515.78
7.1.240.0030.00715.80
7.1.230.0070.00715.72
7.1.220.0070.00315.73
7.1.210.0000.00815.83
7.1.200.0080.00415.82
7.1.190.0060.01015.54
7.1.180.0030.00815.82
7.1.170.0040.01115.96
7.1.160.0080.00315.87
7.1.150.0050.00515.73
7.1.140.0040.00415.80
7.1.130.0070.00315.58
7.1.120.0090.00615.88
7.1.110.0080.00415.68
7.1.100.0030.00716.89
7.1.90.0060.00315.95
7.1.80.0040.00415.79
7.1.70.0040.00416.35
7.1.60.0020.01617.31
7.1.50.0020.01616.32
7.1.40.0100.00315.73
7.1.30.0040.00715.54
7.1.20.0070.00715.73
7.1.10.0070.00315.58
7.1.00.0070.04019.06
7.0.330.0080.00315.61
7.0.320.0070.00315.36
7.0.310.0030.00515.20
7.0.300.0040.01115.04
7.0.290.0000.01015.36
7.0.280.0040.00715.55
7.0.270.0070.00715.22
7.0.260.0000.00815.57
7.0.250.0030.01115.10
7.0.240.0060.00615.68
7.0.230.0080.00415.55
7.0.220.0050.00315.23
7.0.210.0000.01015.45
7.0.200.0030.00516.08
7.0.190.0040.00815.39
7.0.180.0030.00715.17
7.0.170.0000.01315.34
7.0.160.0100.00015.43
7.0.150.0030.00515.49
7.0.140.0070.00715.37
7.0.130.0000.01015.63
7.0.120.0000.01215.61
7.0.110.0040.01115.29
7.0.100.0050.03917.73
7.0.90.0030.02417.68
7.0.80.0030.04417.86
7.0.70.0070.04517.73
7.0.60.0230.04217.64
7.0.50.0130.03217.91
7.0.40.0080.04316.73
7.0.30.0050.05016.74
7.0.20.0080.04716.85
7.0.10.0100.03516.74
7.0.00.0090.04316.78
5.6.380.0000.01114.32
5.6.370.0070.00414.33
5.6.360.0030.00614.57
5.6.350.0090.00014.24
5.6.340.0070.00714.54
5.6.330.0050.00514.19
5.6.320.0100.00714.49
5.6.310.0040.00714.33
5.6.300.0050.00514.50
5.6.290.0000.01414.44
5.6.280.0050.03117.87
5.6.270.0040.00414.45
5.6.260.0110.00014.33
5.6.250.0000.04117.52
5.6.240.0090.03417.60
5.6.230.0080.03917.46
5.6.220.0030.04717.55
5.6.210.0070.03817.31
5.6.200.0110.04417.58
5.6.190.0080.02717.75
5.6.180.0080.03517.71
5.6.170.0100.02517.47
5.6.160.0050.04717.56
5.6.150.0070.02817.71
5.6.140.0080.04117.61
5.6.130.0070.02717.65
5.6.120.0070.04117.59
5.6.110.0080.04017.61
5.6.100.0110.03917.64
5.6.90.0070.03917.61
5.6.80.0030.04417.29
5.6.70.0060.04317.35
5.6.60.0070.04117.25
5.6.50.0070.03517.33
5.6.40.0070.04517.32
5.6.30.0070.02417.24
5.6.20.0100.02517.29
5.6.10.0030.04317.41
5.6.00.0030.04517.29
5.5.380.0030.04015.70
5.5.370.0050.03715.74
5.5.360.0080.04315.71
5.5.350.0060.04315.72
5.5.340.0080.03615.96
5.5.330.0060.04315.87
5.5.320.0020.04915.96
5.5.310.0100.03616.16
5.5.300.0050.04715.88
5.5.290.0050.04515.95
5.5.280.0060.04116.05
5.5.270.0070.04516.00
5.5.260.0070.04515.93
5.5.250.0050.04215.89
5.5.240.0030.04415.65
5.5.230.0070.04115.64
5.5.220.0100.03915.69
5.5.210.0070.04015.62
5.5.200.0050.04115.61
5.5.190.0050.04215.67
5.5.180.0050.04015.75
5.5.170.0050.00011.00
5.5.160.0100.04015.61
5.5.150.0080.03615.56
5.5.140.0030.04215.48
5.5.130.0050.04515.63
5.5.120.0050.03515.62
5.5.110.0100.01515.63
5.5.100.0060.02615.49
5.5.90.0080.03815.59
5.5.80.0050.04215.57
5.5.70.0070.02715.62
5.5.60.0020.03915.54
5.5.50.0080.02315.56
5.5.40.0050.03815.56
5.5.30.0080.03815.46
5.5.20.0070.03715.53
5.5.10.0110.03715.53
5.5.00.0050.04415.51
5.4.450.0060.04215.20
5.4.440.0070.03315.29
5.4.430.0000.03315.21
5.4.420.0030.04515.22
5.4.410.0070.03515.12
5.4.400.0150.02615.02
5.4.390.0030.04315.03
5.4.380.0050.04015.12
5.4.370.0030.04114.91
5.4.360.0030.03815.02
5.4.350.0070.03514.99
5.4.340.0070.04715.02
5.4.330.0060.00311.00
5.4.320.0110.03915.02
5.4.310.0060.02514.99
5.4.300.0050.04315.04
5.4.290.0020.03915.06
5.4.280.0020.04315.00
5.4.270.0050.03814.98
5.4.260.0030.04315.08
5.4.250.0030.04315.07
5.4.240.0100.03815.02
5.4.230.0100.03415.12
5.4.220.0000.04415.02
5.4.210.0090.03714.96
5.4.200.0030.03915.01
5.4.190.0070.04214.98
5.4.180.0070.02414.90
5.4.170.0030.04215.02
5.4.160.0080.03315.03
5.4.150.0020.04315.06
5.4.140.0070.04213.72
5.4.130.0050.03913.67
5.4.120.0020.04213.69
5.4.110.0080.03813.64
5.4.100.0040.03313.65
5.4.90.0060.03613.65
5.4.80.0070.03813.65
5.4.70.0050.04013.65
5.4.60.0100.03013.70
5.4.50.0090.03413.69
5.4.40.0070.03813.77
5.4.30.0080.03813.79
5.4.20.0070.03813.73
5.4.10.0050.04313.79
5.4.00.0050.04513.38
5.3.290.0050.03812.84
5.3.280.0080.03712.79
5.3.270.0100.03712.74
5.3.260.0020.04212.72
5.3.250.0030.03812.81
5.3.240.0070.03812.73
5.3.230.0020.04012.72
5.3.220.0030.04312.72
5.3.210.0050.03812.79
5.3.200.0050.03712.78
5.3.190.0030.04112.79
5.3.180.0050.04012.78
5.3.170.0070.04012.70
5.3.160.0100.03512.79
5.3.150.0070.03912.79
5.3.140.0050.03812.71
5.3.130.0050.04112.70
5.3.120.0080.02912.71
5.3.110.0050.04312.77
5.3.100.0070.03812.50
5.3.90.0000.04612.47
5.3.80.0070.02512.49
5.3.70.0060.03312.49
5.3.60.0040.03712.50
5.3.50.0050.03612.36
5.3.40.0020.03512.47
5.3.30.0050.04112.39
5.3.20.0050.03212.32
5.3.10.0070.03312.31
5.3.00.0020.03512.33
5.2.170.0050.03511.07
5.2.160.0050.03010.98
5.2.150.0020.03811.11
5.2.140.0010.03111.09
5.2.130.0060.02811.04
5.2.120.0030.03311.03
5.2.110.0000.03811.04
5.2.100.0050.03010.98
5.2.90.0110.02810.96
5.2.80.0070.03211.06
5.2.70.0050.02311.06
5.2.60.0030.02810.93
5.2.50.0050.02810.89
5.2.40.0080.03311.04
5.2.30.0020.03710.95
5.2.20.0020.03410.91
5.2.10.0010.03610.97
5.2.00.0060.02710.87
5.1.60.0030.03010.54
5.1.50.0000.03110.44
5.1.40.0030.02810.52
5.1.30.0050.03010.72
5.1.20.0090.02310.73
5.1.10.0000.03410.46
5.1.00.0020.02510.58
5.0.50.0070.0189.99
5.0.40.0050.0139.99
5.0.30.0050.0179.99
5.0.20.0000.0279.99
5.0.10.0000.0249.99
5.0.00.0060.0269.99
4.4.90.0000.0239.99
4.4.80.0020.0219.99
4.4.70.0030.0109.99
4.4.60.0030.0109.99
4.4.50.0000.0199.99
4.4.40.0030.0279.99
4.4.30.0030.0099.99
4.4.20.0000.0239.99
4.4.10.0010.0189.99
4.4.00.0000.0309.99
4.3.110.0070.0179.99
4.3.100.0020.0189.99
4.3.90.0030.0189.99
4.3.80.0010.0289.99
4.3.70.0000.0209.99
4.3.60.0030.0169.99
4.3.50.0050.0139.99
4.3.40.0050.0249.99
4.3.30.0000.0189.99
4.3.20.0030.0089.99
4.3.10.0000.0199.99
4.3.00.0020.0209.99