3v4l.org

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

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.0130.00316.50
8.3.60.0120.00618.42
8.3.50.0040.01117.91
8.3.40.0040.01218.84
8.3.30.0070.00718.71
8.3.20.0000.00819.02
8.3.10.0000.00921.57
8.3.00.0080.00017.93
8.2.190.0100.00716.63
8.2.180.0100.01016.50
8.2.170.0090.00619.13
8.2.160.0030.01022.96
8.2.150.0060.00324.18
8.2.140.0060.00324.66
8.2.130.0040.00419.59
8.2.120.0040.00426.35
8.2.110.0030.00719.29
8.2.100.0060.00617.91
8.2.90.0000.00818.21
8.2.80.0000.00817.97
8.2.70.0000.00918.05
8.2.60.0030.00618.16
8.2.50.0000.00818.10
8.2.40.0060.00319.18
8.2.30.0000.00819.43
8.2.20.0040.00418.12
8.2.10.0030.00618.00
8.2.00.0000.00819.50
8.1.280.0110.00325.92
8.1.270.0060.00323.97
8.1.260.0000.00826.35
8.1.250.0000.00828.09
8.1.240.0100.00317.58
8.1.230.0060.00622.59
8.1.220.0040.00417.74
8.1.210.0030.00518.91
8.1.200.0030.00617.35
8.1.190.0040.00417.23
8.1.180.0060.00318.10
8.1.170.0030.00618.39
8.1.160.0000.00718.81
8.1.150.0030.00318.87
8.1.140.0000.00817.76
8.1.130.0000.00718.91
8.1.120.0050.00317.43
8.1.110.0000.00817.50
8.1.100.0000.00917.34
8.1.90.0000.00817.40
8.1.80.0060.00317.39
8.1.70.0000.00717.42
8.1.60.0000.00817.46
8.1.50.0050.00317.53
8.1.40.0040.00417.45
8.1.30.0030.00717.52
8.1.20.0050.00217.64
8.1.10.0040.00417.56
8.1.00.0050.00317.31
8.0.300.0000.00819.84
8.0.290.0060.00316.75
8.0.280.0070.00018.37
8.0.270.0050.00517.02
8.0.260.0000.00817.26
8.0.250.0050.00316.97
8.0.240.0000.00816.89
8.0.230.0030.00316.95
8.0.220.0040.00416.78
8.0.210.0070.00016.80
8.0.200.0000.00716.90
8.0.190.0030.00316.90
8.0.180.0000.00716.90
8.0.170.0050.00616.95
8.0.160.0040.00416.91
8.0.150.0040.00316.83
8.0.140.0000.00716.74
8.0.130.0000.00513.27
8.0.120.0000.00816.82
8.0.110.0000.00816.73
8.0.100.0040.00416.93
8.0.90.0030.00516.92
8.0.80.0050.01216.96
8.0.70.0000.00716.75
8.0.60.0040.00416.79
8.0.50.0000.00816.67
8.0.30.0090.00916.93
8.0.20.0090.00917.40
8.0.10.0040.00417.08
8.0.00.0130.00516.69
7.4.330.0040.00015.55
7.4.320.0000.00716.43
7.4.300.0030.00316.41
7.4.290.0000.00816.63
7.4.280.0040.00416.60
7.4.270.0040.00416.43
7.4.260.0040.00416.64
7.4.250.0070.00016.58
7.4.240.0070.00016.66
7.4.230.0000.00716.61
7.4.220.0030.00516.63
7.4.210.0080.00716.56
7.4.200.0000.00716.62
7.4.160.0080.00916.50
7.4.140.0070.01217.86
7.4.130.0180.00016.61
7.4.120.0100.01016.44
7.4.110.0130.00616.71
7.4.100.0180.00016.53
7.4.90.0170.00016.40
7.4.80.0120.00619.39
7.4.70.0120.00416.38
7.4.60.0110.00616.46
7.4.50.0090.00716.36
7.4.40.0090.01516.49
7.4.00.0070.00314.96
7.3.330.0040.00413.20
7.3.320.0000.00613.19
7.3.310.0070.00016.34
7.3.300.0000.00716.19
7.3.290.0030.00316.34
7.3.280.0110.00316.39
7.3.260.0090.01016.43
7.3.240.0130.00616.48
7.3.230.0100.00716.59
7.3.210.0170.00716.65
7.3.200.0150.00616.56
7.3.190.0080.00816.65
7.3.180.0060.01016.41
7.3.170.0140.00316.59
7.3.160.0090.00616.67
7.2.330.0120.01216.41
7.2.320.0070.01016.70
7.2.310.0180.00616.52
7.2.300.0170.00016.73
7.2.290.0040.01616.68
7.2.80.0060.00616.70
7.2.60.0040.01217.05
7.2.40.9600.00817.78
7.2.30.6550.00817.78
7.2.20.5820.01017.89
7.2.10.6200.00917.68
7.2.00.6540.01317.82
7.1.200.0060.00915.89
7.1.160.6390.00916.35
7.1.150.6270.01016.52
7.1.140.6140.01016.82
7.1.130.6250.00716.64
7.1.120.5920.01216.84
7.1.110.5700.00515.69
7.1.100.5450.00416.12
7.1.90.8990.01016.11
7.1.80.8200.00916.30
7.1.70.4480.01015.28
7.1.60.6820.01332.96
7.1.50.8820.00932.72
7.1.40.9330.01232.75
7.1.30.6620.01132.76
7.1.20.6440.01332.65
7.1.10.7640.00814.75
7.1.00.4870.00714.85

preferences:
63.33 ms | 401 KiB | 5 Q