3v4l.org

run code in 300+ PHP versions simultaneously
<?php $search=array("<",">","!=","<=",">="); $value = "name ** vivek "; function test($item, $key, $arr) { $str = $arr[0]; $count = $arr[1]; if( strpos($str, $item) !== FALSE ) { $found++; $matches .= $item . " "; } if ($count == $key + 1){ echo "$found search item(s) found in \"$str\": $matches\n"; } } array_walk($search, 'test', array( $value, count($search) ) );

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)
8.3.60.0110.00416.75
8.3.50.0070.00922.93
8.3.40.0120.00318.76
8.3.30.0070.00719.04
8.3.20.0040.00420.23
8.3.10.0080.00021.89
8.3.00.0080.00019.44
8.2.180.0130.00318.41
8.2.170.0130.00322.96
8.2.160.0110.00422.13
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00819.51
8.2.110.0060.00322.14
8.2.100.0040.00817.97
8.2.90.0040.00419.23
8.2.80.0000.00719.38
8.2.70.0110.00417.47
8.2.60.0080.00018.03
8.2.50.0050.00318.07
8.2.40.0000.00818.22
8.2.30.0040.00319.51
8.2.20.0090.00017.87
8.2.10.0080.00018.02
8.2.00.0040.00417.80
8.1.280.0100.01025.92
8.1.270.0000.00823.71
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0050.00323.97
8.1.230.0120.00019.07
8.1.220.0080.00017.74
8.1.210.0080.00018.77
8.1.200.0000.00917.23
8.1.190.0000.00817.41
8.1.180.0030.00518.95
8.1.170.0030.00618.59
8.1.160.0090.00218.80
8.1.150.0000.00818.85
8.1.140.0030.00617.33
8.1.130.0030.00317.68
8.1.120.0040.00417.39
8.1.110.0020.00517.42
8.1.100.0000.00817.37
8.1.90.0060.00317.47
8.1.80.0030.00517.44
8.1.70.0030.00317.43
8.1.60.0060.00317.57
8.1.50.0030.00517.39
8.1.40.0080.00317.46
8.1.30.0060.00317.63
8.1.20.0000.00817.71
8.1.10.0040.00417.48
8.1.00.0040.00417.53
8.0.300.0040.00418.77
8.0.290.0070.00017.17
8.0.280.0000.00818.45
8.0.270.0030.00317.26
8.0.260.0060.00317.14
8.0.250.0000.00717.06
8.0.240.0000.00716.98
8.0.230.0000.00817.01
8.0.220.0000.00716.99
8.0.210.0030.00616.87
8.0.200.0030.00316.91
8.0.190.0040.00416.95
8.0.180.0020.00516.98
8.0.170.0040.00416.87
8.0.160.0000.00816.95
8.0.150.0000.00716.89
8.0.140.0070.00016.94
8.0.130.0030.00313.35
8.0.120.0050.00316.95
8.0.110.0070.00017.02
8.0.100.0030.00316.83
8.0.90.0000.00716.95
8.0.80.0100.00716.99
8.0.70.0040.00416.95
8.0.60.0000.00716.95
8.0.50.0040.00416.83
8.0.30.0130.00917.26
8.0.20.0110.00817.40
8.0.10.0040.00416.88
8.0.00.0130.00416.84
7.4.330.0000.00515.02
7.4.320.0030.00316.41
7.4.300.0000.00616.48
7.4.290.0050.00316.55
7.4.280.0070.00016.53
7.4.270.0070.00016.36
7.4.260.0000.00716.48
7.4.250.0050.00216.49
7.4.240.0030.00416.61
7.4.230.0030.00316.53
7.4.220.0110.00716.66
7.4.210.0090.00516.63
7.4.200.0000.00816.68
7.4.160.0100.00716.61
7.4.150.0120.00617.40
7.4.140.0110.01017.86
7.4.130.0080.01016.62
7.4.120.0070.01116.51
7.4.110.0060.01216.55
7.4.100.0120.00916.54
7.4.90.0120.00616.69
7.4.80.0040.01519.39
7.4.70.0130.00316.62
7.4.60.0030.01516.58
7.4.50.0000.00916.24
7.4.40.0110.00616.69
7.4.30.0060.00916.52
7.4.00.0100.00715.19
7.3.330.0060.00013.45
7.3.320.0050.00013.45
7.3.310.0030.00316.48
7.3.300.0000.00716.43
7.3.290.0080.00916.36
7.3.280.0100.00716.40
7.3.270.0080.00817.40
7.3.260.0120.00916.37
7.3.250.0090.00816.40
7.3.240.0030.01516.47
7.3.230.0080.00816.43
7.3.210.0100.00716.41
7.3.200.0070.01319.39
7.3.190.0070.01616.50
7.3.180.0070.01316.55
7.3.170.0100.01316.56
7.3.160.0120.01216.50
7.3.10.0040.00916.66
7.3.00.0060.01216.68
7.2.330.0090.00916.50
7.2.320.0030.01216.61
7.2.310.0110.00816.45
7.2.300.0070.01016.39
7.2.290.0090.00916.74
7.2.130.0040.01216.68
7.2.120.0130.00317.13
7.2.110.0120.01116.69
7.2.100.0100.00716.89
7.2.90.0090.00516.94
7.2.80.0040.01116.98
7.2.70.0160.00316.71
7.2.60.0000.01116.99
7.2.50.0030.01316.95
7.2.40.0030.01016.93
7.2.30.0030.01416.95
7.2.20.0070.00716.86
7.2.10.0100.00716.80
7.2.00.0050.01018.12
7.1.250.0040.00715.75
7.1.200.0060.00615.97
7.1.100.0130.00318.05
7.1.70.0030.00616.92
7.1.60.0100.01419.34
7.1.50.0110.00834.77
7.1.00.0030.07722.31
7.0.200.0030.00716.92
7.0.140.0030.03022.05
7.0.60.0100.08320.08
7.0.50.0100.07017.85
7.0.40.0070.04320.30
7.0.30.0230.04020.15
7.0.20.0370.07320.23
7.0.10.0270.07720.20
7.0.00.0130.08720.32
5.6.280.0030.07320.78
5.6.210.0070.08720.70
5.6.200.0100.04018.28
5.6.190.0100.08320.64
5.6.180.0070.07720.61
5.6.170.0400.07320.62
5.6.160.0030.05320.44
5.6.150.0070.06018.20
5.6.140.0030.05318.18
5.6.130.0030.04018.14
5.6.120.0070.08320.97
5.6.110.0070.04320.96
5.6.100.0230.03321.03
5.6.90.0000.04321.09
5.6.80.0070.07020.37
5.6.70.0270.05720.40
5.5.350.0000.09320.31
5.5.340.0100.07317.97
5.5.330.0130.08020.25
5.5.320.0470.06320.27
5.5.310.0230.05020.43
5.5.300.0070.06018.06
5.5.290.0100.08317.94
5.5.280.0070.08720.89
5.5.270.0100.08020.80
5.5.260.0170.07720.73
5.5.250.0000.04320.70
5.5.240.0070.07320.28
5.4.450.0300.06319.71
5.4.440.0970.05019.49
5.4.430.0130.05019.39
5.4.420.0170.04719.10
5.4.410.0170.05018.97
5.4.400.0070.05718.62
5.4.390.0100.05018.52
5.4.380.0030.06318.75
5.4.370.0100.05318.50
5.4.360.0170.04318.75
5.4.350.0130.03013.77
5.4.340.0070.03713.80
5.4.320.0070.04014.42
5.4.310.0030.04314.21
5.4.300.0100.04714.35
5.4.290.0130.04014.20
5.4.280.0030.05014.16
5.4.270.0170.03314.16
5.4.260.0100.03714.11
5.4.250.0130.03314.32
5.4.240.0100.03314.15
5.4.230.0100.03714.10
5.4.220.0030.04714.13
5.4.210.0100.03714.21
5.4.200.0070.04714.15
5.4.190.0070.04014.15
5.4.180.0170.03314.18
5.4.170.0100.03714.31
5.4.160.0170.03714.09
5.4.150.0070.03714.12
5.4.140.0070.03714.06
5.4.130.0100.03313.77
5.4.120.0000.04313.77
5.4.110.0100.04013.72
5.4.100.0030.04313.76
5.4.90.0070.04713.78
5.4.80.0030.04313.77
5.4.70.0030.04013.80
5.4.60.0100.03713.76
5.4.50.0100.03313.78
5.4.40.0130.04313.76
5.4.30.0130.03713.78
5.4.20.0070.04013.98
5.4.10.0100.03713.78
5.4.00.0070.04013.23
5.3.290.0170.03714.63
5.3.280.0200.03014.58
5.3.270.0170.04014.64
5.3.260.0270.03014.76
5.3.250.0100.04014.64
5.3.240.0100.03714.58
5.3.230.0100.04014.59
5.3.220.0030.04314.55
5.3.210.0100.04014.74
5.3.200.0130.03314.54
5.3.190.0130.03314.63
5.3.180.0070.04014.63
5.3.170.0100.04314.66
5.3.160.0130.03714.72
5.3.150.0170.04314.61
5.3.140.0170.03014.66
5.3.130.0070.04314.50
5.3.120.0130.04014.54
5.3.110.0130.03714.48
5.3.100.0100.04714.18
5.3.90.0070.04313.95
5.3.80.0070.04013.97
5.3.70.0070.04014.14
5.3.60.0070.04313.97
5.3.50.0100.03713.89
5.3.40.0130.03713.89
5.3.30.0100.03313.93
5.3.20.0070.03713.67
5.3.10.0070.03713.57
5.3.00.0070.04013.62
5.2.170.0100.02711.14
5.2.160.0070.03011.13
5.2.150.0000.03711.27
5.2.140.0130.02711.11
5.2.130.0070.03011.10
5.2.120.0070.03011.27
5.2.110.0030.03311.13
5.2.100.0070.03311.14
5.2.90.0200.02311.06
5.2.80.0170.03011.21
5.2.70.0100.03311.24
5.2.60.0130.02711.13
5.2.50.0130.02310.97
5.2.40.0170.02011.07
5.2.30.0070.03011.02
5.2.20.0130.02310.94
5.2.10.0170.02310.86
5.2.00.0100.02710.71
5.1.60.0030.02710.14
5.1.50.0030.02710.14
5.1.40.0100.02310.11
5.1.30.0100.02310.36
5.1.20.0030.03010.32
5.1.10.0000.03010.05
5.1.00.0100.02310.04
5.0.50.0070.0208.53
5.0.40.0030.0208.39
5.0.30.0000.0378.29
5.0.20.0070.0208.17
5.0.10.0000.0278.16
5.0.00.0070.0308.18
4.4.90.0070.0135.96
4.4.80.0000.0175.84
4.4.70.0070.0105.85
4.4.60.0030.0135.80
4.4.50.0030.0175.89
4.4.40.0030.0235.86
4.4.30.0030.0175.95
4.4.20.0030.0176.01
4.4.10.0100.0105.89
4.4.00.0000.0275.97
4.3.110.0030.0175.89
4.3.100.0030.0135.80
4.3.90.0030.0175.86
4.3.80.0000.0275.93
4.3.70.0000.0175.77
4.3.60.0030.0175.74
4.3.50.0000.0205.82
4.3.40.0030.0235.71
4.3.30.0000.0174.59
4.3.20.0000.0174.55
4.3.10.0000.0174.56
4.3.00.0100.0237.09

preferences:
63.34 ms | 401 KiB | 5 Q