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"); $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.00316.75
8.3.50.0130.00621.99
8.3.40.0040.01118.73
8.3.30.0120.00318.97
8.3.20.0080.00020.30
8.3.10.0050.00322.14
8.3.00.0090.00622.51
8.2.180.0120.00318.16
8.2.170.0140.00022.96
8.2.160.0120.00321.12
8.2.150.0130.00624.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0040.00419.38
8.2.110.0050.00522.16
8.2.100.0110.00019.64
8.2.90.0000.00719.14
8.2.80.0000.00818.05
8.2.70.0060.00317.75
8.2.60.0000.00718.03
8.2.50.0050.00318.07
8.2.40.0000.00818.28
8.2.30.0040.00418.19
8.2.20.0060.00317.60
8.2.10.0040.00419.40
8.2.00.0000.00817.67
8.1.280.0150.00425.92
8.1.270.0000.00822.14
8.1.260.0030.00526.35
8.1.250.0080.00028.09
8.1.240.0060.00323.67
8.1.230.0110.00019.15
8.1.220.0060.00317.74
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0050.00317.39
8.1.180.0040.00418.61
8.1.170.0060.00318.72
8.1.160.0020.00522.12
8.1.150.0050.00318.65
8.1.140.0110.00017.46
8.1.130.0050.00217.79
8.1.120.0000.00717.48
8.1.110.0070.00417.35
8.1.100.0080.00017.33
8.1.90.0040.00417.33
8.1.80.0040.00417.45
8.1.70.0070.00017.43
8.1.60.0000.00917.50
8.1.50.0000.00717.45
8.1.40.0000.00817.41
8.1.30.0000.00817.60
8.1.20.0040.00417.62
8.1.10.0050.00217.62
8.1.00.0040.00417.44
8.0.300.0000.00718.77
8.0.290.0070.00017.05
8.0.280.0050.00218.46
8.0.270.0040.00417.18
8.0.260.0030.00316.70
8.0.250.0030.00316.93
8.0.240.0030.00316.83
8.0.230.0000.00716.94
8.0.220.0000.00716.77
8.0.210.0070.00016.83
8.0.200.0000.00716.95
8.0.190.0000.00817.02
8.0.180.0040.00416.97
8.0.170.0040.00416.80
8.0.160.0020.00516.96
8.0.150.0030.00316.95
8.0.140.0000.00816.77
8.0.130.0030.00313.29
8.0.120.0080.00016.77
8.0.110.0000.00716.87
8.0.100.0040.00416.73
8.0.90.0040.00416.81
8.0.80.0070.01416.88
8.0.70.0040.00416.89
8.0.60.0040.00416.92
8.0.50.0000.00716.94
8.0.30.0150.00517.12
8.0.20.0090.00917.40
8.0.10.0040.00416.87
8.0.00.0100.00816.79
7.4.330.0000.00515.02
7.4.320.0000.00616.46
7.4.300.0030.00316.46
7.4.290.0030.00316.54
7.4.280.0030.00316.55
7.4.270.0040.00416.60
7.4.260.0000.00816.45
7.4.250.0040.00416.48
7.4.240.0040.00416.57
7.4.230.0070.00016.50
7.4.220.0030.01416.46
7.4.210.0070.00916.56
7.4.200.0030.00316.32
7.4.190.0040.00416.69
7.4.160.0110.00516.43
7.4.150.0070.01117.40
7.4.140.0100.01217.86
7.4.130.0040.01416.48
7.4.120.0110.00816.60
7.4.110.0150.00916.68
7.4.100.0090.00916.64
7.4.90.0030.01316.59
7.4.80.0080.01219.39
7.4.70.0070.01316.40
7.4.60.0130.01016.63
7.4.50.0000.00916.53
7.4.40.0000.01222.77
7.4.30.0110.00516.43
7.4.00.0070.01014.59
7.3.330.0000.00513.01
7.3.320.0030.00313.16
7.3.310.0070.00016.15
7.3.300.0050.00216.35
7.3.290.0180.00316.34
7.3.280.0090.00616.34
7.3.270.0090.00917.40
7.3.260.0120.00916.30
7.3.250.0060.01416.37
7.3.240.0140.00316.63
7.3.230.0100.00816.50
7.3.210.0050.01116.29
7.3.200.0030.01319.39
7.3.190.0060.01016.26
7.3.180.0090.00916.50
7.3.170.0080.00816.34
7.3.160.0060.01016.65
7.3.120.0100.00715.04
7.2.330.0140.00616.69
7.2.320.0070.01416.53
7.2.310.0060.01216.67
7.2.300.0030.01316.61
7.2.290.0060.01016.82
7.2.80.0030.01016.60
7.2.60.0140.00416.94
7.2.50.0030.00916.97
7.1.200.0060.00915.95
7.1.100.0000.01518.12
7.1.70.0030.01317.22
7.1.60.0100.01419.82
7.1.50.0070.01116.71
7.1.00.0030.07722.48
7.0.200.0030.00716.60
7.0.140.0030.07322.09
7.0.60.0030.05319.95
7.0.50.0070.03717.77
7.0.40.0130.08320.19
7.0.30.0370.07020.04
7.0.20.0400.06320.16
7.0.10.0230.08020.04
7.0.00.0030.07319.99
5.6.280.0000.07721.13
5.6.210.0130.07720.47
5.6.200.0100.03718.12
5.6.190.0070.04320.45
5.6.180.0300.07020.67
5.6.170.0230.04020.51
5.6.160.0030.07020.52
5.6.150.0170.07018.16
5.6.140.0030.06318.07
5.6.130.0030.08018.16
5.6.120.0070.04020.95
5.6.110.0130.07320.98
5.6.100.0070.04721.00
5.6.90.0100.08320.98
5.6.80.0070.06720.50
5.6.70.4270.03720.34
5.5.350.0030.07720.50
5.5.340.0070.06018.03
5.5.330.0030.04320.21
5.5.320.0270.03020.21
5.5.310.0200.08020.17
5.5.300.0100.07718.02
5.5.290.0070.06318.02
5.5.280.0070.05720.78
5.5.270.0170.07320.65
5.5.260.0030.09020.88
5.5.250.0070.08720.80
5.5.240.0000.04020.24
5.4.450.0670.06019.49
5.4.440.0100.06019.67
5.4.430.0200.05319.14
5.4.420.0200.05319.36
5.4.410.0030.07018.86
5.4.400.1230.00018.51
5.4.390.0830.00018.64
5.4.380.0300.05018.57
5.4.370.0300.05718.50
5.4.360.0230.05318.67
5.4.350.0270.05718.66
5.4.340.0370.06318.71
5.4.320.0080.03912.46
5.4.310.0040.04112.46
5.4.300.0070.03912.46
5.4.290.0060.03812.46
5.4.280.0090.03612.36
5.4.270.0070.03812.36
5.4.260.0000.06018.89
5.4.250.0000.05718.93
5.4.240.0070.08018.91
5.4.230.0030.08318.67
5.4.220.0100.05318.85
5.4.210.0070.05018.83
5.4.200.0170.04318.61
5.4.190.0100.07718.89
5.4.180.0030.05718.99
5.4.170.0100.06018.75
5.4.160.0100.07318.98
5.4.150.0030.08318.96
5.4.140.0070.05016.28
5.4.130.0100.04316.26
5.4.120.0170.04316.48
5.4.110.0170.04316.45
5.4.100.0100.06716.20
5.4.90.0070.05716.26
5.4.80.0070.04716.18
5.4.70.0100.04716.39
5.4.60.0070.05316.44
5.4.50.0030.05316.19
5.4.40.0130.04316.20
5.4.30.0030.05316.28
5.4.20.0170.03716.22
5.4.10.0070.05016.43
5.4.00.0070.04715.93
5.3.290.0060.04412.80
5.3.280.0070.05014.48
5.3.270.0100.06014.63
5.3.260.0130.06014.63
5.3.250.0100.08014.63
5.3.240.0100.04714.31
5.3.230.0230.04714.63
5.3.220.0030.05314.43
5.3.210.0000.06014.43
5.3.200.0000.07014.49
5.3.190.0100.04714.45
5.3.180.0070.06714.45
5.3.170.0070.05014.67
5.3.160.0000.05714.72
5.3.150.0070.05014.27
5.3.140.0170.04314.40
5.3.130.0000.05714.71
5.3.120.0130.04714.57
5.3.110.0100.04714.41
5.3.100.0070.04713.74
5.3.90.0130.04714.05
5.3.80.0100.04314.04
5.3.70.0000.05713.88
5.3.60.0070.05313.93
5.3.50.0030.05013.88
5.3.40.0070.05013.83
5.3.30.0100.07313.88
5.3.20.0070.07013.48
5.3.10.0130.04013.60
5.3.00.0100.04713.59
5.2.170.0030.04311.16
5.2.160.0070.03711.06
5.2.150.0000.04711.05
5.2.140.0030.06311.14
5.2.130.0130.03711.12
5.2.120.0070.03710.87
5.2.110.0030.04011.05
5.2.100.0100.03311.12
5.2.90.0070.03711.03
5.2.80.0100.05010.86
5.2.70.0070.05010.93
5.2.60.0070.04010.98
5.2.50.0000.04711.05
5.2.40.0000.04310.93
5.2.30.0030.04010.88
5.2.20.0100.03310.89
5.2.10.0070.04010.85
5.2.00.0130.03010.66
5.1.60.0100.02710.16
5.1.50.0030.03710.05
5.1.40.0100.0309.91
5.1.30.0070.04010.50
5.1.20.0100.04310.25
5.1.10.0030.04010.11
5.1.00.0030.0479.96
5.0.50.0000.0308.33
5.0.40.0070.0238.31
5.0.30.0100.0378.30
5.0.20.0070.0238.04
5.0.10.0030.0278.14
5.0.00.0030.0578.14
4.4.90.0000.0237.07
4.4.80.0000.0237.07
4.4.70.0070.0237.07
4.4.60.0070.0177.07
4.4.50.0000.0237.07
4.4.40.0000.0377.07
4.4.30.0030.0207.07
4.4.20.0000.0277.07
4.4.10.0000.0277.07
4.4.00.0070.0277.07
4.3.110.0070.0177.07
4.3.100.0000.0377.07
4.3.90.0070.0207.07
4.3.80.0070.0407.07
4.3.70.0070.0177.07
4.3.60.0000.0237.07
4.3.50.0000.0237.07
4.3.40.0000.0337.07
4.3.30.0030.0207.07
4.3.20.0030.0207.07
4.3.10.0000.0237.07
4.3.00.0000.0306.87

preferences:
36.78 ms | 401 KiB | 5 Q