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.0150.00018.55
8.3.50.0270.00321.20
8.3.40.0070.00718.47
8.3.30.0110.00420.21
8.3.20.0040.00420.21
8.3.10.0040.00421.13
8.3.00.0080.00022.37
8.2.180.0130.00716.50
8.2.170.0140.00722.96
8.2.160.0130.00322.26
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0000.00820.87
8.2.110.0090.00019.08
8.2.100.0070.00717.59
8.2.90.0040.00419.22
8.2.80.0030.00517.97
8.2.70.0030.00617.63
8.2.60.0030.00617.80
8.2.50.0060.00318.07
8.2.40.0090.00018.34
8.2.30.0040.00419.39
8.2.20.0000.00717.59
8.2.10.0030.00617.66
8.2.00.0070.00017.60
8.1.280.0040.01125.92
8.1.270.0000.00923.99
8.1.260.0070.00026.35
8.1.250.0000.00728.09
8.1.240.0080.00023.79
8.1.230.0090.00321.04
8.1.220.0030.00518.77
8.1.210.0070.00019.05
8.1.200.0040.00717.22
8.1.190.0000.00717.53
8.1.180.0060.00318.10
8.1.170.0040.00418.64
8.1.160.0050.00318.88
8.1.150.0000.00718.63
8.1.140.0070.00017.49
8.1.130.0000.00817.73
8.1.120.0040.00317.40
8.1.110.0030.00617.37
8.1.100.0080.00017.42
8.1.90.0000.00717.50
8.1.80.0040.00417.34
8.1.70.0030.00317.42
8.1.60.0040.00417.58
8.1.50.0080.00017.38
8.1.40.0000.00817.54
8.1.30.0000.00817.57
8.1.20.0000.00817.62
8.1.10.0000.00817.40
8.1.00.0050.00317.43
8.0.300.0040.00419.85
8.0.290.0060.00317.16
8.0.280.0000.00718.50
8.0.270.0030.00317.26
8.0.260.0030.00316.92
8.0.250.0000.00716.91
8.0.240.0040.00416.95
8.0.230.0040.00416.92
8.0.220.0030.00516.91
8.0.210.0070.00016.82
8.0.200.0000.00616.91
8.0.190.0000.00716.98
8.0.180.0000.00716.97
8.0.170.0000.00816.86
8.0.160.0030.00316.86
8.0.150.0000.00816.87
8.0.140.0050.00516.81
8.0.130.0030.00313.40
8.0.120.0000.00716.80
8.0.110.0050.00216.89
8.0.100.0040.00416.81
8.0.90.0070.00016.91
8.0.80.0090.00516.93
8.0.70.0080.00016.74
8.0.60.0050.00216.78
8.0.50.0090.00016.90
8.0.30.0080.01017.07
8.0.20.0080.01117.40
8.0.10.0050.00217.00
8.0.00.0090.01116.85
7.4.330.0050.00016.70
7.4.320.0030.00316.49
7.4.300.0060.00016.51
7.4.290.0040.00416.40
7.4.280.0070.00016.57
7.4.270.0030.00316.45
7.4.260.0030.00313.28
7.4.250.0040.00416.54
7.4.240.0040.00416.61
7.4.230.0030.00316.60
7.4.220.0060.01216.60
7.4.210.0090.00616.60
7.4.200.0040.00416.48
7.4.190.0030.00316.31
7.4.160.0060.01116.36
7.4.150.0130.01317.40
7.4.140.0080.01017.86
7.4.130.0140.00616.47
7.4.120.0130.00716.45
7.4.110.0030.01416.54
7.4.100.0090.00916.49
7.4.90.0150.00316.43
7.4.80.0110.00719.39
7.4.70.0040.01816.38
7.4.60.0060.01216.60
7.4.50.0040.00416.34
7.4.40.0070.00522.77
7.4.30.0070.01116.45
7.4.00.0100.00615.12
7.3.330.0050.00013.00
7.3.320.0030.00312.99
7.3.310.0000.00616.25
7.3.300.0000.00716.32
7.3.290.0070.00716.31
7.3.280.0070.01216.25
7.3.270.0110.00617.40
7.3.260.0140.01018.24
7.3.250.0040.01416.36
7.3.240.0150.00616.40
7.3.230.0140.00416.43
7.3.210.0120.00316.51
7.3.200.0100.01319.39
7.3.190.0030.01716.27
7.3.180.0070.01016.28
7.3.170.0150.00616.55
7.3.160.0160.00716.31
7.3.120.0000.01114.78
7.2.330.0180.00016.75
7.2.320.0080.00816.35
7.2.310.0080.01516.79
7.2.300.0130.00316.37
7.2.290.0070.01016.39
7.2.80.0040.00816.61
7.2.60.0030.01216.98
7.2.00.0070.00719.45
7.1.200.0070.00715.52
7.1.100.0050.00517.80
7.1.70.0000.01017.17
7.1.60.0140.01019.17
7.1.50.0040.01816.98
7.1.00.0070.05322.44
7.0.200.0080.00016.85
7.0.140.0070.07022.06
7.0.60.0000.08019.99
7.0.50.0030.08317.79
7.0.40.0130.07720.07
7.0.30.0370.07020.09
7.0.20.0330.04320.09
7.0.10.0070.08720.18
7.0.00.0030.06320.03
5.6.280.0030.07321.06
5.6.210.0070.03720.69
5.6.200.0030.08018.12
5.6.190.0070.05320.35
5.6.180.4000.04020.56
5.6.170.0270.08320.31
5.6.160.0130.07720.43
5.6.150.0070.08318.18
5.6.140.0070.08318.21
5.6.130.0030.07718.18
5.6.120.0030.04021.01
5.6.110.0000.04320.97
5.6.100.0030.08721.04
5.6.90.0070.07020.96
5.6.80.0170.06720.43
5.6.70.4730.04020.36
5.5.350.0100.05720.40
5.5.340.0130.07317.88
5.5.330.0070.08320.21
5.5.320.0230.04720.18
5.5.310.0230.03720.17
5.5.300.0030.08317.96
5.5.290.0100.07717.87
5.5.280.0070.06320.77
5.5.270.0130.08020.83
5.5.260.0100.03720.73
5.5.250.0030.06720.68
5.5.240.0130.07020.16
5.4.450.0500.05719.21
5.4.440.0430.04719.25
5.4.430.0430.04719.20
5.4.420.0400.05019.09
5.4.410.0270.04019.32
5.4.400.0370.03719.16
5.4.390.0330.07318.80
5.4.380.0300.03719.08
5.4.370.0500.05719.09
5.4.360.0400.06719.13
5.4.350.0430.04319.14
5.4.340.0400.04019.21
5.4.320.0300.06319.16
5.4.310.0370.04318.80
5.4.300.0370.05019.06
5.4.290.0400.06319.10
5.4.280.0330.03718.88
5.4.270.0330.05019.23
5.4.260.0330.03318.88
5.4.250.0370.03718.87
5.4.240.0330.04318.91
5.4.230.0300.04318.91
5.4.220.0400.06719.05
5.4.210.0530.03719.13
5.4.200.0400.03718.87
5.4.190.0400.03719.05
5.4.180.0430.04319.23
5.4.170.0500.05719.09
5.4.160.0430.05719.22
5.4.150.0400.03319.11
5.4.140.0500.06716.27
5.4.130.0470.06016.29
5.4.120.0430.05316.22
5.4.110.0400.04716.43
5.4.100.0400.03316.39
5.4.90.0370.03316.31
5.4.80.0400.04316.44
5.4.70.0330.05716.38
5.4.60.0470.06316.45
5.4.50.0530.05716.36
5.4.40.0530.06316.36
5.4.30.0500.06016.45
5.4.20.0500.06316.36
5.4.10.0430.04016.46
5.4.00.0400.04315.64
5.3.290.0330.05014.70
5.3.280.0470.07014.43
5.3.270.0430.04714.70
5.3.260.0470.04314.45
5.3.250.0470.06314.54
5.3.240.0370.04014.46
5.3.230.0530.06014.45
5.3.220.0430.06014.51
5.3.210.0370.07314.54
5.3.200.0400.06714.51
5.3.190.0370.07314.43
5.3.180.0400.05314.52
5.3.170.0470.06714.54
5.3.160.0430.07014.40
5.3.150.0470.06014.42
5.3.140.0430.07714.41
5.3.130.0470.06014.38
5.3.120.0500.06314.42
5.3.110.0570.06314.40
5.3.100.0500.05314.00
5.3.90.0400.07013.86
5.3.80.0400.04013.92
5.3.70.0330.03714.06
5.3.60.0530.05713.96
5.3.50.0470.06713.97
5.3.40.0430.04313.89
5.3.30.0430.06013.74
5.3.20.0400.03713.52
5.3.10.0370.03313.45
5.3.00.0430.06313.73
5.2.170.0370.04312.16
5.2.160.0430.05012.16
5.2.150.0330.05712.16
5.2.140.0400.05312.16
5.2.130.0330.04312.16
5.2.120.0370.03012.16
5.2.110.0330.03712.16
5.2.100.0400.05012.16
5.2.90.0430.03712.16
5.2.80.0400.05712.16
5.2.70.0370.03712.16
5.2.60.0300.02712.16
5.2.50.0300.03712.16
5.2.40.0330.05312.16
5.2.30.0330.04712.16
5.2.20.0230.03312.16
5.2.10.0330.05312.16
5.2.00.0300.03312.16
5.1.60.0330.04012.16
5.1.50.0200.03312.16
5.1.40.0270.02312.16
5.1.30.0270.02712.16
5.1.20.0270.03712.16
5.1.10.0330.03012.16
5.1.00.0330.03712.16
5.0.50.0170.02312.16
5.0.40.0170.02312.16
5.0.30.0200.03312.16
5.0.20.0130.02312.16
5.0.10.0100.02312.16
5.0.00.0170.03012.16
4.4.90.0130.01312.16
4.4.80.0130.03012.16
4.4.70.0130.01312.16
4.4.60.0130.03712.16
4.4.50.0130.02012.16
4.4.40.0130.05312.16
4.4.30.0130.01712.16
4.4.20.0130.03312.16
4.4.10.0170.03012.16
4.4.00.0130.04312.16
4.3.110.0170.01312.16
4.3.100.0170.02312.16
4.3.90.0100.01712.16
4.3.80.0170.04712.16
4.3.70.0130.01312.16
4.3.60.0100.02312.16
4.3.50.0170.01712.16
4.3.40.0130.04012.16
4.3.30.0030.01712.16
4.3.20.0070.01712.16
4.3.10.0070.01712.16
4.3.00.0070.03312.16

preferences:
47.4 ms | 401 KiB | 5 Q