3v4l.org

run code in 300+ PHP versions simultaneously
<?php $search = array("<",">","!=","<=",">="); function test($item, $key, $found) { $str = $value = "name >= vivek "; if( strpos($str, $item) !== FALSE ) { $found++; echo $found; } } $found = 0; array_walk($search, 'test', &$found); echo $found;

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).

VersionSystem time (s)User time (s)Memory (MiB)
5.4.360.0070.05718.59
5.4.350.0070.03713.79
5.4.340.0100.03713.74
5.4.320.0030.04714.25
5.4.310.0130.04014.22
5.4.300.0070.04314.30
5.4.290.0100.04014.31
5.4.280.0130.04014.15
5.4.270.0130.03314.32
5.4.260.0130.03714.18
5.4.250.0100.03714.29
5.4.240.0230.02714.15
5.4.230.0130.03314.28
5.4.220.0070.04714.21
5.4.210.0070.04314.17
5.4.200.0030.04714.14
5.4.190.0170.03314.11
5.4.180.0130.04314.16
5.4.170.0030.04314.15
5.4.160.0100.04014.14
5.4.150.0130.04314.31
5.4.140.0100.03713.91
5.4.130.0070.04013.85
5.4.120.0100.04013.79
5.4.110.0100.03713.79
5.4.100.0030.04014.01
5.4.90.0130.03313.90
5.4.80.0030.04313.86
5.4.70.0130.03313.79
5.4.60.0130.03313.93
5.4.50.0100.03713.79
5.4.40.0100.03713.71
5.4.30.0070.04013.91
5.4.20.0070.04013.76
5.4.10.0130.03313.76
5.4.00.0030.04013.26
5.3.290.0130.04014.66
5.3.280.0170.03314.78
5.3.270.0070.04314.67
5.3.260.0100.04014.59
5.3.250.0130.04314.55
5.3.240.0130.03714.54
5.3.230.0100.03714.77
5.3.220.0100.03714.72
5.3.210.0100.04714.56
5.3.200.0100.04014.75
5.3.190.0100.04014.52
5.3.180.0130.03714.54
5.3.170.0030.04314.74
5.3.160.0070.04014.54
5.3.150.0170.03014.70
5.3.140.0130.04314.58
5.3.130.0170.03714.52
5.3.120.0100.04014.54
5.3.110.0170.04014.71
5.3.100.0070.04314.02
5.3.90.0130.03714.08
5.3.80.0230.03014.00
5.3.70.0070.04714.09
5.3.60.0130.04014.07
5.3.50.0100.03714.03
5.3.40.0130.03713.95
5.3.30.0130.03313.84
5.3.20.0100.04013.68
5.3.10.0030.04313.62
5.3.00.0130.04013.60
5.2.170.0100.03011.09
5.2.160.0100.02711.17
5.2.150.0070.03011.18
5.2.140.0130.02711.17
5.2.130.0070.03311.15
5.2.120.0100.03011.27
5.2.110.0070.03011.18
5.2.100.0030.03311.26
5.2.90.0130.02311.14
5.2.80.0030.03311.17
5.2.70.0000.03711.03
5.2.60.0070.03311.09
5.2.50.0070.03711.09
5.2.40.0100.03311.15
5.2.30.0070.03711.11
5.2.20.0130.02710.94
5.2.10.0030.03310.84
5.2.00.0100.02710.76
5.1.60.0130.0209.92
5.1.50.0070.0309.93
5.1.40.0070.02710.03
5.1.30.0070.02710.30
5.1.20.0170.02010.49
5.1.10.0070.02310.09
5.1.00.0170.02010.21
5.0.50.0130.0178.53
5.0.40.0100.0178.54
5.0.30.0030.0408.28
5.0.20.0070.0178.11
5.0.10.0070.0208.15
5.0.00.0030.0378.10
4.4.90.0000.0205.82
4.4.80.0000.0205.89
4.4.70.0100.0105.81
4.4.60.0030.0175.88
4.4.50.0100.0105.87
4.4.40.0030.0275.95
4.4.30.0070.0135.84
4.4.20.0070.0135.95
4.4.10.0030.0235.88
4.4.00.0000.0335.87
4.3.110.0030.0205.76
4.3.100.0100.0175.83
4.3.90.0030.0205.85
4.3.80.0030.0305.82
4.3.70.0100.0135.71
4.3.60.0070.0135.77
4.3.50.0030.0175.84
4.3.40.0000.0305.77
4.3.30.0000.0204.52
4.3.20.0030.0204.49
4.3.10.0000.0234.57
4.3.00.0130.0207.09

preferences:
157.31 ms | 1005 KiB | 7 Q