3v4l.org

run code in 300+ PHP versions simultaneously
<?php // $a = array( 'kaushik', 'kaushik is', 'kaushik is great', 'is', 'is great', 'great' ); $a = array("usb","pc","cam 168","cam","168","cam 168"); $a = array_unique($a); $s = count($a) - 1; $print_following = array(); foreach ($a as $key => $b) { $x = 0; for ($i = 0; $i < count($a); $i++) { $c = $a; unset($c[$key]); if ($key == $i) continue; if (strpos($c[$i], $b) === false) { $x++; } if ($x == $s) array_push($print_following, $key); } } foreach ($print_following as $o => $value) { echo $a[$value]. ' '; } ?>

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.0070.00718.43
8.3.50.0120.00722.11
8.3.40.0140.00718.79
8.3.30.0070.00719.06
8.3.20.0000.00720.39
8.3.10.0060.00321.92
8.3.00.0050.00322.45
8.2.180.0110.00716.75
8.2.170.0110.00422.96
8.2.160.0070.00720.89
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0050.00226.16
8.2.120.0080.00019.23
8.2.110.0000.01020.39
8.2.100.0070.00417.72
8.2.90.0000.00919.35
8.2.80.0040.00418.15
8.2.70.0060.00317.63
8.2.60.0050.00318.04
8.2.50.0000.00818.07
8.2.40.0090.00018.22
8.2.30.0040.00418.03
8.2.20.0000.00817.79
8.2.10.0040.00419.54
8.2.00.0080.00017.64
8.1.280.0110.00425.92
8.1.270.0050.00322.19
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00023.96
8.1.230.0110.00020.88
8.1.220.0050.00317.78
8.1.210.0030.00618.77
8.1.200.0030.00617.25
8.1.190.0060.00317.41
8.1.180.0000.00818.64
8.1.170.0040.00418.56
8.1.160.0040.00422.07
8.1.150.0000.00818.57
8.1.140.0000.00817.47
8.1.130.0040.00417.82
8.1.120.0000.00717.55
8.1.110.0040.00417.40
8.1.100.0080.00017.42
8.1.90.0070.00017.54
8.1.80.0040.00417.47
8.1.70.0070.00017.45
8.1.60.0060.00317.62
8.1.50.0040.00417.54
8.1.40.0000.00817.61
8.1.30.0080.00017.61
8.1.20.0000.00917.74
8.1.10.0040.00417.59
8.1.00.0000.00817.45
8.0.300.0040.00418.77
8.0.290.0060.00317.18
8.0.280.0000.00818.52
8.0.270.0040.00417.19
8.0.260.0030.00316.82
8.0.250.0040.00416.96
8.0.240.0040.00416.84
8.0.230.0000.00716.84
8.0.220.0060.00016.90
8.0.210.0020.00516.91
8.0.200.0030.00317.02
8.0.190.0040.00416.99
8.0.180.0000.00816.89
8.0.170.0000.00716.93
8.0.160.0070.00016.88
8.0.150.0040.00416.77
8.0.140.0040.00416.79
8.0.130.0060.00013.43
8.0.120.0060.00316.88
8.0.110.0030.00416.86
8.0.100.0040.00416.96
8.0.90.0040.00416.91
8.0.80.0090.00616.91
8.0.70.0040.00416.92
8.0.60.0070.00016.80
8.0.50.0040.00416.92
8.0.30.0180.00716.98
8.0.20.0120.01017.40
8.0.10.0060.00316.86
8.0.00.0150.00316.88
7.4.330.0030.00315.00
7.4.320.0070.00016.49
7.4.300.0000.00716.60
7.4.290.0040.00416.52
7.4.280.0000.00816.59
7.4.270.0000.00716.57
7.4.260.0000.00716.55
7.4.250.0000.00816.57
7.4.240.0020.00516.54
7.4.230.0000.00816.50
7.4.220.0030.01316.63
7.4.210.0070.00816.62
7.4.200.0030.00316.35
7.4.190.0040.00416.70
7.4.160.0140.00716.39
7.4.150.0090.00917.40
7.4.140.0110.00817.86
7.4.130.0050.01216.49
7.4.120.0080.00816.44
7.4.110.0060.01216.44
7.4.100.0160.00616.67
7.4.90.0090.01216.52
7.4.80.0030.02119.39
7.4.70.0070.01016.45
7.4.60.0040.01216.39
7.4.50.0050.00016.64
7.4.40.0070.01022.77
7.4.30.0120.00316.68
7.4.00.0090.00615.05
7.3.330.0030.00313.06
7.3.320.0030.00313.16
7.3.310.0080.00016.38
7.3.300.0040.00416.42
7.3.290.0090.00616.33
7.3.280.0110.00816.34
7.3.270.0120.00617.40
7.3.260.0150.00316.35
7.3.250.0110.00616.46
7.3.240.0140.00616.28
7.3.230.0070.01016.39
7.3.210.0090.00916.38
7.3.200.0000.01619.39
7.3.190.0100.01416.47
7.3.180.0070.01016.18
7.3.170.0120.00316.39
7.3.160.0030.01316.45
7.3.120.0110.00314.99
7.2.330.0080.01116.72
7.2.320.0120.00316.76
7.2.310.0080.00816.68
7.2.300.0000.01716.81
7.2.290.0060.00916.61
7.2.00.0000.01619.43
7.1.100.0060.00617.89
7.1.70.0020.00517.25
7.1.60.0110.01419.82
7.1.50.0040.00716.97
7.1.00.0030.07722.41
7.0.200.0040.00816.48
7.0.140.0000.07721.92
7.0.60.0030.09020.06
7.0.50.0070.07317.88
7.0.40.0100.07720.24
7.0.30.0400.06020.18
7.0.20.0270.05720.17
7.0.10.0170.07320.00
7.0.00.0100.05320.13
5.6.280.0030.07020.87
5.6.210.0200.07020.56
5.6.200.0100.08018.23
5.6.190.0100.08720.41
5.6.180.3530.04020.33
5.6.170.0230.08020.36
5.6.160.0070.05720.49
5.6.150.0070.08318.18
5.6.140.0000.05318.15
5.6.130.0000.04718.20
5.6.120.0100.04721.04
5.6.110.0100.08720.89
5.6.100.0000.07020.96
5.6.90.0170.07320.99
5.6.80.0030.09020.38
5.6.70.0300.06320.44
5.5.350.0030.08720.33
5.5.340.0130.06717.93
5.5.330.0130.08020.37
5.5.320.0270.06720.43
5.5.310.0200.05720.30
5.5.300.0070.07717.95
5.5.290.0000.04317.95
5.5.280.0070.04720.74
5.5.270.0230.07720.87
5.5.260.0100.07020.98
5.5.250.0070.04720.70
5.5.240.0130.07020.37
5.4.450.0370.05719.28
5.4.440.0530.06319.24
5.4.430.0230.04319.30
5.4.420.0130.05319.32
5.4.410.0100.06719.36
5.4.400.1630.00018.75
5.4.390.1600.00018.48
5.4.380.0230.05318.77
5.4.370.0170.05018.72
5.4.360.0100.06018.69
5.4.350.0330.04318.57
5.4.340.0130.06018.51
5.4.320.0090.03312.47
5.4.310.0070.04112.46
5.4.300.0060.03612.46
5.4.290.0040.03812.46
5.4.280.0080.03412.36
5.4.270.0050.03612.36
5.4.260.0070.05018.89
5.4.250.0130.05718.89
5.4.240.0000.06018.99
5.4.230.0000.05718.74
5.4.220.0100.05718.95
5.4.210.0030.05318.87
5.4.200.0170.04718.70
5.4.190.0100.07018.61
5.4.180.0070.05018.79
5.4.170.0100.05018.66
5.4.160.0070.05718.85
5.4.150.0130.05718.88
5.4.140.0130.04716.48
5.4.130.0200.05316.41
5.4.120.0170.04016.43
5.4.110.0000.06016.45
5.4.100.0100.06716.41
5.4.90.0130.06716.38
5.4.80.0200.05316.31
5.4.70.0130.04316.38
5.4.60.0000.05716.44
5.4.50.0000.05716.14
5.4.40.0070.05316.35
5.4.30.0070.04716.33
5.4.20.0200.03316.31
5.4.10.0130.05316.38
5.4.00.0170.06015.71
5.3.290.0060.03812.80
5.3.280.0100.05314.61
5.3.270.0070.06014.63
5.3.260.0100.06314.39
5.3.250.0170.04314.64
5.3.240.0130.04714.77
5.3.230.0100.05014.38
5.3.220.0200.04014.59
5.3.210.0070.05314.73
5.3.200.0130.07014.27
5.3.190.0030.07314.50
5.3.180.0070.05314.59
5.3.170.0030.05314.49
5.3.160.0100.07314.72
5.3.150.0170.04314.59
5.3.140.0100.05014.58
5.3.130.0100.05014.40
5.3.120.0070.05314.71
5.3.110.0030.05314.56
5.3.100.0000.05713.89
5.3.90.0070.05013.86
5.3.80.0000.06013.90
5.3.70.0070.05713.93
5.3.60.0000.05313.88
5.3.50.0130.04313.97
5.3.40.0130.06313.73
5.3.30.0170.04013.93
5.3.20.0070.05013.57
5.3.10.0000.05313.59
5.3.00.0070.05313.49
5.2.170.0070.05711.15
5.2.160.0030.06010.91
5.2.150.0070.05011.25
5.2.140.0030.04311.14
5.2.130.0030.04311.13
5.2.120.0030.04311.13
5.2.110.0030.04311.03
5.2.100.0100.03711.21
5.2.90.0000.06010.96
5.2.80.0000.04311.11
5.2.70.0100.04011.02
5.2.60.0030.04011.05
5.2.50.0030.04311.14
5.2.40.0000.04310.93
5.2.30.0000.04710.87
5.2.20.0170.04011.13
5.2.10.0070.04310.75
5.2.00.0070.05010.73
5.1.60.0070.03310.10
5.1.50.0070.03010.26
5.1.40.0030.0379.91
5.1.30.0070.04310.55
5.1.20.0130.02710.25
5.1.10.0030.04710.02
5.1.00.0030.03710.11
5.0.50.0000.0378.48
5.0.40.0070.0378.48
5.0.30.0070.0408.38
5.0.20.0000.0308.35
5.0.10.0000.0438.27
5.0.00.0030.0408.36
4.4.90.0030.0206.96
4.4.80.0030.0206.96
4.4.70.0000.0336.96
4.4.60.0030.0206.96
4.4.50.0030.0236.96
4.4.40.0100.0276.24
4.4.30.0100.0136.11
4.4.20.0030.0206.00
4.4.10.0000.0235.98
4.4.00.0000.0335.98
4.3.110.0100.0135.98
4.3.100.0130.0135.98
4.3.90.0030.0205.98
4.3.80.0000.0375.98
4.3.70.0030.0205.98
4.3.60.0030.0235.95
4.3.50.0000.0235.94
4.3.40.0000.0475.94
4.3.30.0030.0205.94
4.3.20.0000.0305.94
4.3.10.0000.0235.94
4.3.00.0130.0207.46

preferences:
47.18 ms | 401 KiB | 5 Q