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"); $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 ($a as $key => $value) { if (in_array($key, $print_following)) { echo $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.0140.00318.43
8.3.50.0050.01221.98
8.3.40.0090.00618.63
8.3.30.0140.00019.14
8.3.20.0070.00720.21
8.3.10.0030.00522.10
8.3.00.0040.00422.37
8.2.180.0090.01216.75
8.2.170.0090.00622.96
8.2.160.0110.00420.93
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0090.00026.16
8.2.120.0080.00019.36
8.2.110.0090.00022.24
8.2.100.0060.00619.51
8.2.90.0080.00019.22
8.2.80.0080.00018.04
8.2.70.0000.00817.75
8.2.60.0000.00817.93
8.2.50.0040.00418.07
8.2.40.0040.00418.18
8.2.30.0090.00018.05
8.2.20.0040.00417.71
8.2.10.0000.00819.58
8.2.00.0040.00417.73
8.1.280.0070.00725.92
8.1.270.0040.00422.14
8.1.260.0070.00026.35
8.1.250.0050.00228.09
8.1.240.0060.00323.79
8.1.230.0070.00419.02
8.1.220.0040.00417.91
8.1.210.0000.00818.77
8.1.200.0080.00417.23
8.1.190.0040.00417.54
8.1.180.0000.00918.60
8.1.170.0030.00618.63
8.1.160.0000.00722.15
8.1.150.0040.00418.60
8.1.140.0070.00317.46
8.1.130.0030.00617.40
8.1.120.0040.00317.54
8.1.110.0040.00717.42
8.1.100.0000.00817.48
8.1.90.0070.00017.50
8.1.80.0000.00717.35
8.1.70.0030.00317.34
8.1.60.0000.00817.47
8.1.50.0050.00317.43
8.1.40.0040.00417.55
8.1.30.0040.00417.60
8.1.20.0000.00817.67
8.1.10.0040.00417.59
8.1.00.0060.00317.36
8.0.300.0000.00818.77
8.0.290.0040.00416.93
8.0.280.0030.00318.45
8.0.270.0040.00417.18
8.0.260.0040.00416.70
8.0.250.0030.00316.95
8.0.240.0050.00216.84
8.0.230.0070.00016.87
8.0.220.0030.00316.94
8.0.210.0050.00316.94
8.0.200.0040.00416.82
8.0.190.0030.00516.95
8.0.180.0090.00016.98
8.0.170.0040.00416.93
8.0.160.0040.00416.87
8.0.150.0040.00416.88
8.0.140.0000.01016.75
8.0.130.0030.00313.35
8.0.120.0000.00816.81
8.0.110.0040.00416.86
8.0.100.0040.00416.87
8.0.90.0040.00416.75
8.0.80.0030.01316.94
8.0.70.0000.00716.75
8.0.60.0040.00416.80
8.0.50.0000.00716.68
8.0.30.0100.01317.31
8.0.20.0030.01517.40
8.0.10.0040.00416.90
8.0.00.0100.00816.80
7.4.330.0000.00515.02
7.4.320.0030.00316.63
7.4.300.0030.00316.41
7.4.290.0030.00316.43
7.4.280.0030.00516.45
7.4.270.0030.00316.52
7.4.260.0030.00316.39
7.4.250.0040.00416.47
7.4.240.0040.00316.57
7.4.230.0030.00316.40
7.4.220.0060.01216.64
7.4.210.0080.00816.58
7.4.200.0030.00316.30
7.4.190.0070.00016.75
7.4.160.0110.00416.52
7.4.150.0060.01217.40
7.4.140.0060.01117.86
7.4.130.0100.00816.53
7.4.120.0120.00616.64
7.4.110.0100.01316.55
7.4.100.0090.00916.60
7.4.90.0060.01216.58
7.4.80.0110.00619.39
7.4.70.0110.00716.48
7.4.60.0030.01416.46
7.4.50.0080.00016.66
7.4.40.0030.01122.77
7.4.30.0030.01316.58
7.4.00.0060.00614.93
7.3.330.0050.00013.16
7.3.320.0000.00513.07
7.3.310.0040.00316.39
7.3.300.0000.00716.33
7.3.290.0130.01316.44
7.3.280.0070.00816.31
7.3.270.0030.01317.40
7.3.260.0070.01516.25
7.3.250.0120.00816.44
7.3.240.0120.00416.39
7.3.230.0170.00616.59
7.3.210.0100.00716.46
7.3.200.0090.00919.39
7.3.190.0140.00716.45
7.3.180.0120.00916.61
7.3.170.0160.00016.66
7.3.160.0130.01016.64
7.3.120.0100.00615.01
7.3.10.0100.00616.45
7.3.00.0090.00816.55
7.2.330.0080.01116.71
7.2.320.0120.01016.74
7.2.310.0100.01316.89
7.2.300.0100.00716.41
7.2.290.0140.00316.77
7.2.130.0160.00916.77
7.2.120.0140.00616.80
7.2.110.0140.00516.74
7.2.100.0130.00716.74
7.2.90.0090.00816.95
7.2.80.0120.00916.90
7.2.70.0110.00816.90
7.2.60.0140.01016.74
7.2.50.0110.00716.63
7.2.40.0120.00616.76
7.2.30.0080.00816.74
7.2.20.0090.00716.78
7.2.10.0100.00816.88
7.2.00.0080.00717.52
7.1.250.0110.00515.52
7.1.100.0030.01018.35
7.1.70.0070.01017.28
7.1.60.0120.01219.82
7.1.50.0110.01116.66
7.1.00.0000.08022.54
7.0.200.0060.00316.46
7.0.140.0000.07721.97
7.0.60.0100.07319.92
7.0.50.0170.03717.78
7.0.40.0030.07720.25
7.0.30.0230.04020.17
7.0.20.0300.07320.00
7.0.10.0170.04320.17
7.0.00.0030.04720.19
5.6.280.0130.06321.13
5.6.210.0030.08320.63
5.6.200.0030.09018.22
5.6.190.0200.06720.39
5.6.180.0230.07720.38
5.6.170.0230.05320.46
5.6.160.0100.04720.52
5.6.150.0100.07718.09
5.6.140.0070.04718.21
5.6.130.0100.03718.09
5.6.120.0130.07021.03
5.6.110.0000.04321.13
5.6.100.0000.04720.99
5.6.90.0130.08021.00
5.6.80.0130.07720.39
5.6.70.4230.04020.52
5.5.350.0270.07720.30
5.5.340.0100.07717.92
5.5.330.0100.08020.13
5.5.320.0070.04720.23
5.5.310.0270.04320.19
5.5.300.0100.05017.92
5.5.290.0100.08317.98
5.5.280.0030.08720.88
5.5.270.0130.07720.79
5.5.260.0170.04020.75
5.5.250.0030.09320.68
5.5.240.0030.04020.35
5.4.450.0830.07319.28
5.4.440.0530.05319.10
5.4.430.0300.04319.16
5.4.420.0070.05719.41
5.4.410.0130.05318.89
5.4.400.0400.05018.51
5.4.390.0600.05018.59
5.4.380.0230.05318.74
5.4.370.0100.05018.70
5.4.360.0030.04018.65
5.4.350.0040.03611.98
5.4.340.0040.04011.98
5.4.320.0090.04112.46
5.4.310.0040.04512.46
5.4.300.0050.03712.46
5.4.290.0090.04112.46
5.4.280.0050.03712.36
5.4.270.0090.04212.36
5.4.260.0030.05718.74
5.4.250.0200.04018.84
5.4.240.0100.05718.83
5.4.230.0100.05318.99
5.4.220.0130.05318.89
5.4.210.0030.05718.73
5.4.200.0100.05018.88
5.4.190.0170.04318.86
5.4.180.0100.07018.75
5.4.170.0070.06019.00
5.4.160.0130.05318.89
5.4.150.0130.05018.71
5.4.140.0030.05716.48
5.4.130.0100.04716.24
5.4.120.0000.05316.45
5.4.110.0030.05316.34
5.4.100.0100.07016.20
5.4.90.0030.05316.39
5.4.80.0170.04016.44
5.4.70.0100.06716.44
5.4.60.0100.04716.37
5.4.50.0000.05716.28
5.4.40.0100.04716.48
5.4.30.0130.04316.33
5.4.20.0070.04716.22
5.4.10.0230.05016.42
5.4.00.0100.04315.84
5.3.290.0060.04812.80
5.3.280.0000.06014.62
5.3.270.0100.05014.77
5.3.260.0100.05314.61
5.3.250.0100.04714.61
5.3.240.0100.05014.48
5.3.230.0070.05014.61
5.3.220.0100.04714.59
5.3.210.0030.06014.60
5.3.200.0070.05314.57
5.3.190.0070.05314.46
5.3.180.0100.04714.61
5.3.170.0070.05314.46
5.3.160.0100.04714.35
5.3.150.0030.05014.47
5.3.140.0100.04714.56
5.3.130.0170.04314.71
5.3.120.0100.04714.57
5.3.110.0130.04714.61
5.3.100.0130.04314.06
5.3.90.0030.05014.03
5.3.80.0100.04713.98
5.3.70.0100.04714.02
5.3.60.0070.05014.05
5.3.50.0070.06313.98
5.3.40.0070.05714.01
5.3.30.0030.05013.86
5.3.20.0070.04713.64
5.3.10.0100.04313.51
5.3.00.0070.07713.34
5.2.170.0070.04711.16
5.2.160.0030.06011.16
5.2.150.0000.04310.91
5.2.140.0030.04010.91
5.2.130.0100.03311.07
5.2.120.0030.04011.21
5.2.110.0000.04311.22
5.2.100.0170.04711.02
5.2.90.0070.04011.17
5.2.80.0000.04710.86
5.2.70.0030.04311.12
5.2.60.0070.04011.21
5.2.50.0100.03310.94
5.2.40.0070.04010.84
5.2.30.0000.04310.82
5.2.20.0070.03710.86
5.2.10.0070.04711.08
5.2.00.0070.04010.90
5.1.60.0030.03310.04
5.1.50.0100.03010.24
5.1.40.0070.0309.84
5.1.30.0130.03310.32
5.1.20.0130.03710.20
5.1.10.0100.04310.32
5.1.00.0000.0409.98
5.0.50.0070.0338.48
5.0.40.0100.0208.66
5.0.30.0070.0578.33
5.0.20.0070.0238.26
5.0.10.0070.0238.27
5.0.00.0000.0438.13
4.4.90.0000.0236.30
4.4.80.0070.0176.30
4.4.70.0000.0236.30
4.4.60.0000.0236.30
4.4.50.0000.0236.30
4.4.40.0030.0336.30
4.4.30.0030.0176.30
4.4.20.0070.0276.30
4.4.10.0000.0236.30
4.4.00.0030.0336.30
4.3.110.0030.0306.30
4.3.100.0100.0236.30
4.3.90.0030.0176.30
4.3.80.0100.0236.30
4.3.70.0030.0206.30
4.3.60.0030.0206.30
4.3.50.0030.0306.30
4.3.40.0030.0336.30
4.3.30.0000.0236.30
4.3.20.0000.0236.30
4.3.10.0000.0236.30
4.3.00.0130.01714.49

preferences:
39.57 ms | 401 KiB | 5 Q