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); $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 == count($a) - 1) { if (!in_array($i, $print_following)) { 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.40.0110.00418.59
8.3.30.0000.01419.21
8.3.20.0000.00820.07
8.3.10.0000.00821.92
8.3.00.0050.00322.52
8.2.170.0070.01022.96
8.2.160.0090.00921.13
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0070.01026.16
8.2.120.0050.00319.36
8.2.110.0060.00322.04
8.2.100.0080.00419.64
8.2.90.0000.00819.30
8.2.80.0030.00518.05
8.2.70.0040.00417.75
8.2.60.0040.00417.90
8.2.50.0040.00418.07
8.2.40.0080.00018.16
8.2.30.0040.00418.05
8.2.20.0000.00817.61
8.2.10.0040.00419.50
8.2.00.0040.00417.80
8.1.270.0030.00622.14
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0030.00623.97
8.1.230.0030.00919.10
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0090.00017.35
8.1.190.0080.00017.55
8.1.180.0030.00618.65
8.1.170.0030.00618.56
8.1.160.0050.00222.20
8.1.150.0020.00518.57
8.1.140.0000.00917.32
8.1.130.0040.00417.80
8.1.120.0000.00817.48
8.1.110.0030.00717.43
8.1.100.0000.00717.36
8.1.90.0040.00417.48
8.1.80.0000.00717.46
8.1.70.0000.00717.40
8.1.60.0030.00617.58
8.1.50.0040.00417.38
8.1.40.0000.00817.56
8.1.30.0040.00417.60
8.1.20.0000.00817.70
8.1.10.0040.00417.55
8.1.00.0070.00017.50
8.0.300.0000.00718.77
8.0.290.0040.00417.18
8.0.280.0020.00518.52
8.0.270.0070.00017.33
8.0.260.0040.00416.83
8.0.250.0030.00317.00
8.0.240.0070.00016.98
8.0.230.0030.00316.83
8.0.220.0030.00317.00
8.0.210.0050.00316.89
8.0.200.0030.00316.97
8.0.190.0000.00817.03
8.0.180.0030.00616.94
8.0.170.0050.00316.89
8.0.160.0040.00416.78
8.0.150.0000.00716.87
8.0.140.0000.00816.86
8.0.130.0030.00313.37
8.0.120.0030.00516.89
8.0.110.0000.00816.96
8.0.100.0060.00317.01
8.0.90.0000.00716.77
8.0.80.0130.01016.88
8.0.70.0080.00016.85
8.0.60.0040.00416.73
8.0.50.0000.00816.95
8.0.30.0100.00816.93
8.0.20.0130.01017.40
8.0.10.0040.00417.01
8.0.00.0140.00816.70
7.4.330.0000.00515.05
7.4.320.0060.00016.42
7.4.300.0000.00616.59
7.4.290.0000.00716.62
7.4.280.0000.00716.63
7.4.270.0030.00316.53
7.4.260.0070.00016.51
7.4.250.0000.00716.33
7.4.240.0060.00216.60
7.4.230.0000.00716.50
7.4.220.0070.01616.51
7.4.210.0060.00816.52
7.4.200.0070.00016.42
7.4.190.0030.00516.69
7.4.160.0130.00316.39
7.4.150.0170.00317.40
7.4.140.0110.00717.86
7.4.130.0090.00916.52
7.4.120.0110.00616.41
7.4.110.0140.00816.59
7.4.100.0130.01016.38
7.4.90.0060.01116.48
7.4.80.0130.00719.39
7.4.70.0120.00616.50
7.4.60.0070.01016.59
7.4.50.0040.00416.36
7.4.40.0090.00922.77
7.4.30.0030.01316.52
7.4.00.0100.00615.00
7.3.330.0030.00313.16
7.3.320.0030.00313.24
7.3.310.0000.00716.15
7.3.300.0000.00616.38
7.3.290.0000.01416.32
7.3.280.0060.00916.34
7.3.270.0070.01317.40
7.3.260.0110.00816.50
7.3.250.0110.00716.34
7.3.240.0070.01016.36
7.3.230.0110.00716.39
7.3.210.0080.01116.45
7.3.200.0100.00719.39
7.3.190.0120.00716.29
7.3.180.0070.01416.40
7.3.170.0090.00616.36
7.3.160.0060.01016.50
7.3.120.0150.00015.12
7.2.330.0070.01416.50
7.2.320.0060.01116.80
7.2.310.0120.00416.48
7.2.300.0090.01216.71
7.2.290.0040.01116.62
7.2.80.0000.00916.70
7.2.60.0060.00616.93
7.2.00.0090.00619.68
7.1.200.0060.00615.74
7.1.100.0030.01018.20
7.1.70.0030.01317.28
7.1.60.0070.01719.82
7.1.50.0070.01416.87
7.1.00.0000.07722.40
7.0.200.0110.00416.29
7.0.140.0030.07321.96
7.0.60.0170.07720.07
7.0.50.0100.03317.84
7.0.40.0070.06720.30
7.0.30.0330.08020.21
7.0.20.0230.04320.02
7.0.10.0230.08020.17
7.0.00.0130.08020.19
5.6.210.0100.05320.73
5.6.200.0100.06018.19
5.6.190.0070.05020.60
5.6.180.3730.03720.61
5.6.170.0200.04720.33
5.6.160.0100.03320.71
5.6.150.0100.05318.19
5.6.140.0030.04018.14
5.6.130.0070.05018.11
5.6.120.0130.08020.97
5.6.110.0070.08321.02
5.6.100.0030.08720.98
5.6.90.0100.03721.10
5.6.80.0030.06020.39
5.5.350.0000.08720.31
5.5.340.0030.09018.01
5.5.330.0070.07320.25
5.5.320.0300.06720.29
5.5.310.0270.05020.24
5.5.300.0000.04317.95
5.5.290.0170.03718.01
5.5.280.0130.08020.89
5.5.270.0130.05020.76
5.5.260.0070.06720.76
5.5.250.0070.05020.50
5.5.240.0070.07720.26
5.4.450.0600.06019.64
5.4.440.0670.04719.55
5.4.430.0070.05719.31
5.4.420.0100.05319.29
5.4.410.0130.05019.52
5.4.400.0870.00018.51
5.4.390.0800.00018.51
5.4.380.0170.06018.68
5.4.370.1000.05718.70
5.4.360.1000.05018.57
5.4.350.1100.05318.61
5.4.340.1100.05318.53
5.4.320.0080.04412.46
5.4.310.0060.04012.46
5.4.300.0060.04312.46
5.4.290.0060.04712.46
5.4.280.0060.04212.36
5.4.270.0090.03412.36
5.4.260.0130.04718.79
5.4.250.0130.04718.72
5.4.240.0100.06018.91
5.4.230.0130.07018.73
5.4.220.0130.07018.79
5.4.210.0070.05018.63
5.4.200.0070.05318.89
5.4.190.0100.06718.77
5.4.180.0170.06018.78
5.4.170.0070.05718.89
5.4.160.0030.05318.55
5.4.150.0100.05018.79
5.4.140.0030.05316.27
5.4.130.0130.04016.43
5.4.120.0070.05016.47
5.4.110.0030.05316.31
5.4.100.0070.05016.35
5.4.90.0030.05016.34
5.4.80.0130.04016.34
5.4.70.0030.05016.24
5.4.60.0100.04316.14
5.4.50.0030.05016.40
5.4.40.0070.06316.37
5.4.30.0170.04016.32
5.4.20.0130.04016.39
5.4.10.0070.05016.30
5.4.00.0100.04715.70
5.3.290.0060.04512.80
5.3.280.0100.05014.75
5.3.270.0070.05014.62
5.3.260.0030.05314.50
5.3.250.0130.05014.39
5.3.240.0100.04714.31
5.3.230.0070.05014.31
5.3.220.0070.05314.45
5.3.210.0100.04714.60
5.3.200.0070.06714.60
5.3.190.0030.05314.58
5.3.180.0000.05714.41
5.3.170.0170.06014.44
5.3.160.0030.05314.44
5.3.150.0170.04014.49
5.3.140.0070.05014.66
5.3.130.0070.05014.57
5.3.120.0100.05014.61
5.3.110.0200.03714.43
5.3.100.0030.05014.09
5.3.90.0070.04713.90
5.3.80.0100.04314.04
5.3.70.0030.05013.94
5.3.60.0170.04313.70
5.3.50.0000.05713.82
5.3.40.0100.04713.98
5.3.30.0030.05313.84
5.3.20.0070.04713.64
5.3.10.0070.05713.60
5.3.00.0100.04713.50
5.2.170.0000.04311.16
5.2.160.0100.03311.17
5.2.150.0130.03311.16
5.2.140.0030.04011.04
5.2.130.0030.04311.11
5.2.120.0070.03711.13
5.2.110.0070.04311.02
5.2.100.0070.03710.95
5.2.90.0070.04011.10
5.2.80.0170.03311.00
5.2.70.0170.04311.25
5.2.60.0030.04011.07
5.2.50.0170.03011.05
5.2.40.0100.05010.93
5.2.30.0100.04010.98
5.2.20.0030.06010.86
5.2.10.0030.04010.86
5.2.00.0100.04710.79
5.1.60.0070.04310.03
5.1.50.0000.0379.93
5.1.40.0070.03010.05
5.1.30.0070.03310.23
5.1.20.0070.03310.44
5.1.10.0070.03310.13
5.1.00.0030.0379.96
5.0.50.0000.0308.80
5.0.40.0000.0308.65
5.0.30.0030.0578.13
5.0.20.0030.0238.28
5.0.10.0000.0308.27
5.0.00.0070.0378.22
4.4.90.0030.0206.20
4.4.80.0030.0206.20
4.4.70.0030.0206.20
4.4.60.0100.0136.20
4.4.50.0030.0236.20
4.4.40.0030.0336.20
4.4.30.0070.0176.20
4.4.20.0000.0236.20
4.4.10.0000.0236.20
4.4.00.0030.0376.20
4.3.110.0000.0236.20
4.3.100.0030.0206.20
4.3.90.0000.0276.20
4.3.80.0000.0336.20
4.3.70.0070.0176.20
4.3.60.0000.0236.20
4.3.50.0030.0206.20
4.3.40.0030.0306.20
4.3.30.0030.0206.20
4.3.20.0000.0236.20
4.3.10.0000.0206.20
4.3.00.0030.0237.27

preferences:
51.79 ms | 400 KiB | 5 Q