3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function match_str($cellItemName,$dbItemArray) { $count = 0; $reult1 = stristr($cellItemName,$dbItemArray); //echo $reult1; if($reult1){ $count=1; } if($count==1) { return 1; } else { return 0; } } $msg = "2 php developer $150"; $msg1 = "PHP DEVELOPER"; $result = match_str($msg,$msg1); if($result) echo "<a href='#' >anand</a>"; else echo "<a href='#' >kumar</a>"; ?>

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.0270.00798.97
7.3.0rc30.0200.00016.73
7.3.0beta10.0000.00712.59
7.3.0alpha10.0070.00212.38
7.2.60.0070.00716.63
7.2.00.0070.01119.55
7.1.200.0060.00615.72
7.1.100.0070.00318.23
7.1.70.0040.01417.25
7.1.60.0110.01419.21
7.1.50.0030.01616.80
7.1.00.0000.07322.45
7.0.200.0290.00415.00
7.0.140.0030.07322.07
7.0.60.0000.04719.86
7.0.50.0030.08317.84
7.0.40.0100.04019.96
7.0.30.0270.06720.25
7.0.20.0370.04320.19
7.0.10.0230.05320.16
7.0.00.0070.04320.18
5.6.280.0070.07020.78
5.6.210.0070.04020.48
5.6.200.0030.07318.18
5.6.190.0070.09020.46
5.6.180.0230.04720.61
5.6.170.0200.03720.44
5.6.160.0070.08320.54
5.6.150.0070.07318.19
5.6.140.0100.07718.18
5.6.130.0000.08018.16
5.6.120.0130.07721.15
5.6.110.0200.07020.99
5.6.100.0030.04020.98
5.6.90.0170.06021.04
5.6.80.0030.06320.40
5.5.350.0070.08020.44
5.5.340.0070.08317.96
5.5.330.0170.06720.19
5.5.320.0030.05020.52
5.5.310.0270.04720.51
5.5.300.0070.04017.98
5.5.290.0030.08318.07
5.5.280.0070.05020.98
5.5.270.0100.07720.86
5.5.260.0100.03720.97
5.5.250.0100.07320.59
5.5.240.0070.05020.16
5.4.450.0670.04319.69
5.4.440.0200.04319.64
5.4.430.0500.05019.54
5.4.420.0500.03719.64
5.4.410.0100.05319.29
5.4.400.0470.03718.88
5.4.390.0000.04718.84
5.4.380.0300.06018.70
5.4.370.0200.04718.47
5.4.360.0100.05318.54
5.4.350.0430.05318.53
5.4.340.0370.06018.47
5.4.320.0100.03812.51
5.4.310.0100.04112.50
5.4.300.0080.04912.50
5.4.290.0060.04312.50
5.4.280.0070.04112.40
5.4.270.0090.04012.40
5.4.260.0070.03812.40
5.4.250.0070.05318.91
5.4.240.0100.05318.82
5.4.230.0070.05318.66
5.4.220.0030.05718.91
5.4.210.0230.06019.00
5.4.200.0130.04719.03
5.4.190.0070.05019.00
5.4.180.0070.05018.91
5.4.170.0130.05718.63
5.4.160.0170.05318.75
5.4.150.0100.05318.76
5.4.140.0100.05316.55
5.4.130.0030.06016.39
5.4.120.0100.07316.31
5.4.110.0130.04316.62
5.4.100.0100.04716.54
5.4.90.0070.04716.36
5.4.80.0030.05016.50
5.4.70.0100.04316.49
5.4.60.0030.05016.54
5.4.50.0030.05316.62
5.4.40.0170.05016.65
5.4.30.0100.05016.43
5.4.20.0070.05716.62
5.4.10.0070.05316.52
5.4.00.0100.06015.96
5.3.290.0080.03812.80
5.3.280.0100.04714.67
5.3.270.0100.05014.70
5.3.260.0200.06314.76
5.3.250.0170.04714.68
5.3.240.0000.06314.77
5.3.230.0130.05014.67
5.3.220.0130.05014.58
5.3.210.0030.07714.63
5.3.200.0130.04314.46
5.3.190.0100.04714.78
5.3.180.0130.04014.46
5.3.170.0100.04714.64
5.3.160.0200.06314.57
5.3.150.0070.05014.54
5.3.140.0130.04314.55
5.3.130.0100.05014.71
5.3.120.0130.04714.51
5.3.110.0170.04714.45
5.3.100.0200.04314.05
5.3.90.0130.04714.14
5.3.80.0170.04314.10
5.3.70.0030.05013.99
5.3.60.0100.04714.08
5.3.50.0030.05314.03
5.3.40.0070.04714.16
5.3.30.0000.05313.89
5.3.20.0130.05713.59
5.3.10.0070.05013.48
5.3.00.0030.05313.73
5.2.170.0070.06011.11
5.2.160.0030.04011.22
5.2.150.0030.04011.13
5.2.140.0070.04011.20
5.2.130.0070.04311.28
5.2.120.0070.04311.09
5.2.110.0070.03711.18
5.2.100.0030.04311.18
5.2.90.0030.04011.17
5.2.80.0030.05711.17
5.2.70.0170.04011.16
5.2.60.0070.04011.12
5.2.50.0100.05011.10
5.2.40.0100.03311.07
5.2.30.0070.03711.05
5.2.20.0170.04011.13
5.2.10.0070.04711.03
5.2.00.0000.04710.80
5.1.60.0070.04310.09
5.1.50.0070.03310.00
5.1.40.0130.02710.02
5.1.30.0030.03710.39
5.1.20.0100.03710.26
5.1.10.0030.03710.16
5.1.00.0000.0409.90
5.0.50.0070.0308.55
5.0.40.0070.0408.38
5.0.30.0030.0438.38
5.0.20.0030.0278.25
5.0.10.0030.0378.23
5.0.00.0070.0408.15
4.4.90.0070.0277.54
4.4.80.0000.0237.54
4.4.70.0000.0237.54
4.4.60.0070.0207.54
4.4.50.0030.0207.54
4.4.40.0070.0407.53
4.4.30.0070.0207.53
4.4.20.0070.0177.54
4.4.10.0030.0207.54
4.4.00.0030.0337.54
4.3.110.0030.0207.54
4.3.100.0000.0337.54
4.3.90.0000.0307.54
4.3.80.0000.0377.54
4.3.70.0070.0177.54
4.3.60.0100.0207.54
4.3.50.0000.0237.54
4.3.40.0030.0437.54
4.3.30.0000.0237.54
4.3.20.0000.0237.54
4.3.10.0000.0207.54
4.3.00.0130.02014.48