3v4l.org

run code in 300+ PHP versions simultaneously
<?php $lines = [ '24/08/2017,email@test.ie,1,2', '21/05/2018,test@234.com,1,2', '21/05/2018,test@test.ie,2,2' ]; $found = 0; $email = 'email@test.ie'; foreach ($lines as $line){ if (strpos($line, $email) !==false){ echo 'email is: ' . $email . PHP_EOL; $found = true; $arrayOfLine = explode(",", $line); $foundGroup = $arrayOfLine[2]; $foundVideo = $arrayOfLine[3]; } elseif (strpos($line, $email) ===false){ $found = false; } } echo '$found is: '. $found;

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.70.0090.00616.50
8.3.60.0070.00718.43
8.3.50.0060.01218.18
8.3.40.0070.01418.71
8.3.30.0090.00618.67
8.3.20.0080.00018.99
8.3.10.0080.00021.72
8.3.00.0090.00019.68
8.2.190.0170.00318.12
8.2.180.0030.01316.63
8.2.170.0170.00322.96
8.2.160.0100.00319.21
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00421.05
8.2.110.0030.00619.31
8.2.100.0110.00017.91
8.2.90.0060.00317.97
8.2.80.0000.00820.26
8.2.70.0050.00318.05
8.2.60.0080.00018.22
8.2.50.0050.00318.10
8.2.40.0050.00219.42
8.2.30.0040.00419.49
8.2.20.0050.00218.18
8.2.10.0000.00818.05
8.2.00.0030.00319.44
8.1.280.0130.00625.92
8.1.270.0080.00023.76
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0040.00422.14
8.1.230.0040.00720.91
8.1.220.0030.00617.79
8.1.210.0080.00018.90
8.1.200.0000.01017.23
8.1.190.0000.00817.38
8.1.180.0080.00018.10
8.1.170.0000.00818.49
8.1.160.0040.00418.89
8.1.150.0070.00018.88
8.1.140.0000.00717.86
8.1.130.0030.00319.00
8.1.120.0070.00017.46
8.1.110.0000.00817.34
8.1.100.0080.00017.42
8.1.90.0040.00417.36
8.1.80.0030.00717.49
8.1.70.0000.00817.43
8.1.60.0040.00417.46
8.1.50.0050.00617.57
8.1.40.0060.00317.56
8.1.30.0030.00717.66
8.1.20.0040.00417.55
8.1.10.0040.00417.54
8.1.00.0040.00417.46
8.0.300.0040.00419.95
8.0.290.0000.00816.75
8.0.280.0000.00718.52
8.0.270.0000.00817.14
8.0.260.0060.00017.18
8.0.250.0070.00017.04
8.0.240.0080.00016.83
8.0.230.0070.00016.98
8.0.220.0000.00816.81
8.0.210.0030.00316.73
8.0.200.0000.00717.00
8.0.190.0080.00016.97
8.0.180.0040.00416.94
8.0.170.0090.00316.97
8.0.160.0040.00416.87
8.0.150.0080.00016.85
8.0.140.0000.00816.90
8.0.130.0000.00513.31
8.0.120.0000.00716.87
8.0.110.0080.00016.90
8.0.100.0080.00016.86
8.0.90.0040.00416.83
8.0.80.0100.00716.90
8.0.70.0050.00216.82
8.0.60.0050.00216.67
8.0.50.0040.00416.92
8.0.30.0130.00617.25
8.0.20.0100.01017.40
8.0.10.0000.00716.90
8.0.00.0110.00616.78
7.4.330.0050.00015.55
7.4.320.0030.00316.63
7.4.300.0030.00316.45
7.4.290.0040.00416.58
7.4.280.0040.00416.59
7.4.270.0070.00016.51
7.4.260.0030.00316.52
7.4.250.0000.00716.43
7.4.240.0050.00216.61
7.4.230.0000.00716.59
7.4.220.0030.00516.60
7.4.210.0070.01116.67
7.4.200.0070.00016.50
7.4.160.0110.00716.58
7.4.140.0090.00917.86
7.4.130.0220.00016.54
7.4.120.0090.01216.56
7.4.110.0100.00716.63
7.4.100.0030.01316.53
7.4.90.0070.01016.50
7.4.80.0130.01019.39
7.4.70.0060.00916.57
7.4.60.0080.00916.44
7.4.50.0030.01316.43
7.4.40.0130.00916.32
7.4.10.0100.01014.98
7.4.00.0070.01014.90
7.3.330.0030.00513.06
7.3.320.0050.00013.16
7.3.310.0000.00716.34
7.3.300.0040.00416.39
7.3.290.0030.00316.29
7.3.280.0000.01516.25
7.3.260.0120.00416.50
7.3.240.0080.01016.42
7.3.230.0180.00316.39
7.3.210.0110.00616.46
7.3.200.0130.00716.51
7.3.190.0100.01016.53
7.3.180.0100.00716.50
7.3.170.0100.00716.37
7.3.160.0040.01216.44
7.3.130.0120.00614.94
7.3.120.0090.00915.04
7.3.110.0070.01014.80
7.3.100.0000.00814.96
7.3.90.0090.00314.98
7.3.80.0000.01414.86
7.3.70.0030.01014.47
7.3.60.0030.01014.63
7.3.50.0040.01114.48
7.3.40.0060.00314.63
7.3.30.0030.00714.98
7.3.20.0040.00716.62
7.3.10.0060.00716.78
7.3.00.0050.00816.76
7.2.330.0120.00616.55
7.2.320.0000.01716.66
7.2.310.0110.00616.82
7.2.300.0060.00916.59
7.2.290.0030.01316.80
7.2.260.0030.01415.16
7.2.250.0070.01414.99
7.2.240.0090.00614.98
7.2.230.0000.01015.00
7.2.220.0070.00715.33
7.2.210.0000.01315.15
7.2.200.0030.00915.02
7.2.190.0030.01015.21
7.2.180.0070.00715.06
7.2.170.0000.01115.10
7.2.160.0000.01514.73
7.2.150.0070.01017.17
7.2.140.0060.00816.96
7.2.130.0050.01016.78
7.2.120.0070.00516.86
7.2.110.0070.00816.83
7.2.100.0050.00916.98
7.2.90.0060.01016.84
7.2.80.0060.00816.91
7.2.70.0070.00716.90
7.2.60.0060.01117.05
7.2.50.0040.00916.90
7.2.40.0070.01017.29
7.2.30.0150.00917.33
7.2.20.0110.00417.18
7.2.10.0600.00816.99
7.2.00.0090.00917.18
7.1.330.0080.00816.02
7.1.320.0080.00615.71
7.1.310.0000.01515.63
7.1.300.0090.00615.70
7.1.290.0060.00915.61
7.1.280.0060.00315.75
7.1.270.0060.00815.84
7.1.260.0060.00615.79
7.1.250.0030.00915.90
7.1.240.0110.00815.61
7.1.230.0060.00315.93
7.1.220.0060.00615.81
7.1.210.0090.00315.63
7.1.200.0060.00615.72
7.1.190.0030.01115.93
7.1.180.0060.00915.93
7.1.170.0070.01415.71
7.1.160.0180.00616.28
7.1.150.0020.01516.35
7.1.140.0080.00816.28
7.1.130.0100.01016.17
7.1.120.0050.01116.18
7.1.110.0130.00516.19
7.1.100.0140.00816.21
7.1.90.0060.00715.95
7.1.80.0090.00716.00
7.1.70.0350.00415.57
7.1.60.0190.00824.40
7.1.50.0170.01024.41
7.1.40.0180.01224.38
7.1.30.0350.00724.35
7.1.20.0140.00924.24
7.1.10.0120.01015.19
7.1.00.0090.00715.37
7.0.330.0000.01015.38
7.0.320.0060.00615.58
7.0.310.0030.01015.61
7.0.300.0120.00915.26
7.0.290.0140.00015.36
7.0.280.0060.01015.10
7.0.270.0080.00315.46
7.0.260.0080.00415.42
7.0.250.0100.00715.48
7.0.240.0040.01115.56
7.0.230.0070.00315.18
7.0.220.0050.00515.48
7.0.210.0080.00415.64
7.0.200.0080.00615.55
7.0.190.0040.00815.43
7.0.180.0070.00715.55
7.0.170.0100.00315.57
7.0.160.0000.01115.28
7.0.150.0070.00315.11
7.0.140.0030.01015.53
7.0.130.0070.00715.20
7.0.120.0060.00315.64
7.0.110.0070.00715.47
7.0.100.0090.00315.24
7.0.90.0000.01415.39
7.0.80.0060.00915.60
7.0.70.0070.00715.15
7.0.60.0080.00415.46
7.0.50.0070.00315.52
7.0.40.0070.00713.59
7.0.30.0080.00813.37
7.0.20.0080.00813.50
7.0.10.0070.00313.27
7.0.00.0040.00413.59
5.6.400.0070.00414.57
5.6.390.0030.01014.26
5.6.380.0070.00714.41
5.6.370.0110.00014.56
5.6.360.0060.00314.18
5.6.350.0000.00814.26
5.6.340.0070.00413.96
5.6.330.0030.01014.66
5.6.320.0070.01114.20
5.6.310.0060.00613.96
5.6.300.0070.00714.60
5.6.290.0000.01014.38
5.6.280.0040.01114.58
5.6.270.0120.00314.49
5.6.260.0090.00014.70
5.6.250.0110.00014.49
5.6.240.0040.01414.64
5.6.230.0060.00914.33
5.6.220.0040.01114.21
5.6.210.0080.00014.33
5.6.200.0070.00714.32
5.6.190.0030.00614.43
5.6.180.0000.01414.40
5.6.170.0030.00914.66
5.6.160.0060.00614.14
5.6.150.0140.00314.52
5.6.140.0070.01014.39
5.6.130.0000.01414.53
5.6.120.0040.01514.37
5.6.110.0080.00314.31
5.6.100.0070.00714.24
5.6.90.0130.00014.09
5.6.80.0060.00614.52
5.6.70.0030.01014.62
5.6.60.0060.00614.28
5.6.50.0000.01614.14
5.6.40.0000.01514.19
5.6.30.0030.01014.33
5.6.20.0030.01314.50
5.6.10.0060.00914.29
5.6.00.0030.00614.12

preferences:
42.94 ms | 401 KiB | 5 Q