3v4l.org

run code in 300+ PHP versions simultaneously
<?php $words = array('systematic', 'سلام','gear','synthesis','mysterious'); $letters=array('s','m', 'e'); foreach ($words as $w) { //print "lets check word $w<br>"; $n=0; foreach ($letters as $l) { if (strpos($w, $l)!==false) $n++; } if ($n>=3) print "$w<br/>"; }

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.00018.56
8.3.50.0120.00821.08
8.3.40.0090.00618.46
8.3.30.0100.00320.17
8.3.20.0000.00720.09
8.3.10.0070.00021.14
8.3.00.0040.00422.58
8.2.180.0140.00716.59
8.2.170.0110.00422.96
8.2.160.0110.00421.99
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0020.00526.16
8.2.120.0080.00020.88
8.2.110.0000.00919.17
8.2.100.0080.00317.56
8.2.90.0040.00419.17
8.2.80.0000.00819.28
8.2.70.0030.00617.50
8.2.60.0070.00417.93
8.2.50.0040.00418.07
8.2.40.0060.00618.14
8.2.30.0040.00419.42
8.2.20.0070.00017.56
8.2.10.0040.00417.68
8.2.00.0070.00017.63
8.1.280.0150.00325.92
8.1.270.0060.00323.99
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00322.37
8.1.230.0000.01220.87
8.1.220.0040.00418.77
8.1.210.0020.00519.16
8.1.200.0050.00517.23
8.1.190.0040.00417.53
8.1.180.0070.00418.10
8.1.170.0050.00318.66
8.1.160.0040.00418.89
8.1.150.0050.00318.63
8.1.140.0040.00417.41
8.1.130.0000.00717.73
8.1.120.0040.00417.51
8.1.110.0070.00017.50
8.1.100.0020.00517.34
8.1.90.0000.00817.46
8.1.80.0040.00417.41
8.1.70.0000.00717.41
8.1.60.0050.00217.55
8.1.50.0030.00617.41
8.1.40.0040.00417.54
8.1.30.0070.00017.68
8.1.20.0000.00917.61
8.1.10.0050.00317.47
8.1.00.0000.00817.47
8.0.300.0000.00820.03
8.0.290.0000.00717.18
8.0.280.0030.00318.35
8.0.270.0070.00017.31
8.0.260.0070.00016.82
8.0.250.0030.00317.02
8.0.240.0000.00916.93
8.0.230.0040.00416.93
8.0.220.0030.00316.77
8.0.210.0000.00716.84
8.0.200.0070.00016.83
8.0.190.0030.00416.84
8.0.180.0000.00816.81
8.0.170.0060.00316.81
8.0.160.0000.00716.88
8.0.150.0080.00016.78
8.0.140.0030.00916.76
8.0.130.0050.00013.29
8.0.120.0000.00716.87
8.0.110.0000.00816.86
8.0.100.0070.00016.74
8.0.90.0030.00516.80
8.0.80.0060.01416.80
8.0.70.0000.00716.75
8.0.60.0050.00216.88
8.0.50.0050.00316.83
8.0.30.0150.00717.20
8.0.20.0120.00917.40
8.0.10.0070.00016.99
8.0.00.0070.01116.80
7.4.330.0030.00316.71
7.4.320.0030.00316.48
7.4.300.0000.00616.60
7.4.290.0040.00416.60
7.4.280.0070.00016.59
7.4.270.0000.00716.39
7.4.260.0030.00613.27
7.4.250.0000.00716.55
7.4.240.0040.00316.56
7.4.230.0030.00316.50
7.4.220.0070.01116.66
7.4.210.0080.00816.53
7.4.200.0000.00716.34
7.4.190.0000.00716.46
7.4.160.0100.00716.48
7.4.150.0070.01117.40
7.4.140.0100.00817.86
7.4.130.0100.00816.50
7.4.120.0130.00816.50
7.4.110.0120.00616.41
7.4.100.0090.00916.41
7.4.90.0150.00416.39
7.4.80.0130.00319.39
7.4.70.0120.00416.55
7.4.60.0090.01316.46
7.4.50.0040.00416.34
7.4.40.0060.00922.77
7.4.30.0040.01316.52
7.4.00.0060.00914.99
7.3.330.0030.00313.11
7.3.320.0020.00213.10
7.3.310.0050.00216.40
7.3.300.0000.00716.26
7.3.290.0110.00516.17
7.3.280.0110.00716.29
7.3.270.0100.01017.40
7.3.260.0120.01118.24
7.3.250.0070.01116.33
7.3.240.0160.00016.48
7.3.230.0100.00716.58
7.3.210.0120.00616.42
7.3.200.0060.01819.39
7.3.190.0040.01516.66
7.3.180.0090.00616.31
7.3.170.0060.00916.53
7.3.160.0120.00316.47
7.3.120.0040.01114.71
7.2.330.0120.00616.70
7.2.320.0070.01116.66
7.2.310.0110.01116.60
7.2.300.0130.00316.58
7.2.290.0100.00716.41
7.1.70.0070.00717.27
7.1.60.0180.00719.17
7.1.50.0060.01616.92
7.1.00.0000.05022.44
7.0.200.0070.00316.67
7.0.140.0100.07022.11
7.0.60.0030.08720.01
7.0.50.0100.03717.80
7.0.40.0100.03719.98
7.0.30.0370.06020.09
7.0.20.0270.05020.34
7.0.10.0130.03720.02
7.0.00.0070.05720.17
5.6.280.0030.07020.90
5.6.210.0070.08320.66
5.6.200.0130.07718.08
5.6.190.0130.06320.27
5.6.180.0370.05320.61
5.6.170.0230.03720.54
5.6.160.0030.04020.48
5.6.150.0100.07718.17
5.6.140.0100.07718.11
5.6.130.0070.08018.10
5.6.120.0100.08721.00
5.6.110.0030.04020.88
5.6.100.0070.08020.88
5.6.90.0170.06020.96
5.6.80.0070.05320.50
5.5.350.0270.07320.52
5.5.340.0100.07717.89
5.5.330.0070.07720.25
5.5.320.2730.05020.24
5.5.310.0330.07320.39
5.5.300.0100.08318.01
5.5.290.0030.08317.89
5.5.280.0100.06020.97
5.5.270.0130.07320.66
5.5.260.0100.06720.75
5.5.250.0030.04720.68
5.5.240.0200.03720.25
5.4.450.0230.05019.52
5.4.440.0300.08019.54
5.4.430.0400.06719.41
5.4.420.0270.06719.38
5.4.410.0400.06019.38
5.4.400.0270.05018.81
5.4.390.0300.04018.91
5.4.380.0270.05019.08
5.4.370.0230.03718.82
5.4.360.0200.04019.19
5.4.350.0200.04019.06
5.4.340.0230.03719.09
5.4.320.0130.04719.11
5.4.310.0130.04319.13
5.4.300.0170.03719.23
5.4.290.0170.04018.80
5.4.280.0170.04319.21
5.4.270.0170.04319.11
5.4.260.0400.04319.07
5.4.250.0130.03719.05
5.4.240.0070.04318.91
5.4.230.0130.05019.04
5.4.220.0170.04019.08
5.4.210.0130.04018.80
5.4.200.0170.03718.79
5.4.190.0230.03019.19
5.4.180.0100.04019.07
5.4.170.0100.05019.08
5.4.160.0270.03019.06
5.4.150.0200.03719.04
5.4.140.0230.03316.27
5.4.130.0230.03316.18
5.4.120.0270.05016.16
5.4.110.0230.05316.39
5.4.100.0330.06316.34
5.4.90.0230.05716.46
5.4.80.0300.06016.18
5.4.70.0330.06716.41
5.4.60.0270.05716.21
5.4.50.0270.03716.20
5.4.40.0270.04016.43
5.4.30.0170.04016.27
5.4.20.0200.04016.22
5.4.10.0300.07016.36
5.4.00.0300.07015.72
5.3.290.0100.04314.61
5.3.280.0200.04014.44
5.3.270.0230.03714.55
5.3.260.0130.05014.58
5.3.250.0230.05014.44
5.3.240.0330.04714.43
5.3.230.0330.06714.46
5.3.220.0230.03314.52
5.3.210.0230.07714.54
5.3.200.0300.04714.41
5.3.190.0300.05314.65
5.3.180.0330.06014.39
5.3.170.0270.04314.55
5.3.160.0370.05014.65
5.3.150.0300.04014.47
5.3.140.0370.04314.39
5.3.130.0370.04014.64
5.3.120.0330.04314.43
5.3.110.0230.06314.50
5.3.100.0230.04713.89
5.3.90.0230.04313.85
5.3.80.0200.04014.00
5.3.70.0200.03713.89
5.3.60.0200.03713.88
5.3.50.0330.04013.89
5.3.40.0230.05713.72
5.3.30.0230.05313.74
5.3.20.0430.05313.74
5.3.10.0400.06013.53
5.3.00.0300.06013.58
5.2.170.0330.05011.08
5.2.160.0170.04011.05
5.2.150.0270.05011.16
5.2.140.0230.06011.05
5.2.130.0200.04311.17
5.2.120.0270.05710.96
5.2.110.0200.03710.93
5.2.100.0330.04711.14
5.2.90.0200.05011.11
5.2.80.0230.05011.11
5.2.70.0200.02711.04
5.2.60.0330.04710.88
5.2.50.0330.03010.95
5.2.40.0270.05010.93
5.2.30.0200.05011.06
5.2.20.0270.03310.96
5.2.10.0200.05710.90
5.2.00.0230.05310.68
5.1.60.0130.0379.97
5.1.50.0100.03310.04
5.1.40.0200.0379.94
5.1.30.0130.04010.20
5.1.20.0170.03310.31
5.1.10.0200.04310.14
5.1.00.0300.04310.00
5.0.50.0100.0208.70
5.0.40.0070.0438.38
5.0.30.0100.0638.34
5.0.20.0100.0338.32
5.0.10.0130.0238.32
5.0.00.0130.0378.32
4.4.90.0100.0308.32
4.4.80.0070.0308.32
4.4.70.0130.0338.32
4.4.60.0100.0208.32
4.4.50.0100.0178.32
4.4.40.0070.0538.32
4.4.30.0100.0378.32
4.4.20.0130.0338.32
4.4.10.0100.0238.32
4.4.00.0100.0538.32
4.3.110.0070.0238.32
4.3.100.0130.0338.32
4.3.90.0070.0238.32
4.3.80.0070.0278.32
4.3.70.0070.0238.32
4.3.60.0100.0138.32
4.3.50.0100.0138.32
4.3.40.0100.0338.32
4.3.30.0070.0338.32
4.3.20.0070.0408.32
4.3.10.0070.0238.32
4.3.00.0030.0238.32

preferences:
47.16 ms | 400 KiB | 5 Q