3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fullArtistTimes = [ ['time' => '18:31:00', 'artist' => 'LUIS RODRIGUEZ & DEN HARROW'], ['time' => '18:32:00', 'artist' => 'J BALVIN'], ['time' => '18:33:00', 'artist' => 'THE BLACK EYED PEAS FT J BALVIN'], ['time' => '18:34:00', 'artist' => 'THE BLACK EYED PEAS FT J BALVIN'], ['time' => '18:35:00', 'artist' => 'J BALVIN'] ]; $fullArtist = 'THE BLACK EYED PEAS FT J BALVIN'; $artistDelimiters = '~ (?:[+e,&]|and|f(?:ea)?t\.?|vs\.?) ~i'; $artists = array_flip(preg_split($artistDelimiters, $fullArtist)); $result = []; foreach ($fullArtistTimes as $row) { foreach (preg_split($artistDelimiters, $row['artist']) as $artist) { if (isset($artists[$artist])) { $result[] = "{$artist} is at {$row['time']}"; } } } var_export($result);

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.4.120.0120.00820.77
8.4.110.0130.00319.02
8.4.100.0110.00717.82
8.4.90.0060.00418.10
8.4.80.0040.00518.00
8.4.70.0010.00917.94
8.4.60.0100.01018.86
8.4.50.0090.00617.82
8.4.40.0100.01019.63
8.4.30.0160.00320.49
8.4.20.0150.00018.02
8.4.10.0080.00817.91
8.3.250.0100.00918.95
8.3.240.0130.00616.95
8.3.230.0050.00416.60
8.3.220.0090.01017.37
8.3.210.0050.00316.75
8.3.200.0050.00416.68
8.3.190.0010.00817.33
8.3.180.0090.00920.95
8.3.170.0060.01216.89
8.3.160.0040.01517.04
8.3.150.0130.00717.27
8.3.140.0120.00617.21
8.3.130.0040.00416.86
8.3.120.0060.00619.21
8.3.110.0060.00320.94
8.3.100.0100.00024.06
8.3.90.0030.00626.77
8.3.80.0090.00017.00
8.3.70.0090.00618.55
8.3.60.0110.00718.56
8.3.50.0070.01124.63
8.3.40.0170.00319.29
8.3.30.0070.00719.15
8.3.20.0040.00421.91
8.3.10.0040.00420.07
8.3.00.0080.00023.66
8.2.290.0060.00220.46
8.2.280.0080.01118.64
8.2.270.0090.00916.95
8.2.260.0110.00718.62
8.2.250.0080.00018.68
8.2.240.0050.00317.17
8.2.230.0080.00022.58
8.2.220.0040.00837.54
8.2.210.0130.00726.77
8.2.200.0070.00317.00
8.2.190.0130.00916.63
8.2.180.0110.00716.88
8.2.170.0070.00719.21
8.2.160.0070.00722.96
8.2.150.0030.00525.66
8.2.140.0050.00324.66
8.2.130.0080.00026.16
8.2.120.0080.00026.16
8.2.110.0100.01022.43
8.2.100.0110.00017.97
8.2.90.0040.00418.15
8.2.80.0000.00919.04
8.2.70.0080.00017.88
8.2.60.0030.00517.88
8.2.50.0060.00319.32
8.2.40.0000.00819.47
8.2.30.0040.00419.41
8.2.20.0040.00418.16
8.2.10.0040.00419.45
8.2.00.0030.00519.39
8.1.330.0110.00716.44
8.1.320.0060.00416.56
8.1.310.0040.00416.94
8.1.300.0030.00618.04
8.1.290.0060.00618.88
8.1.280.0120.00425.92
8.1.270.0030.00623.73
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0040.00422.66
8.1.230.0110.00018.99
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0080.00017.35
8.1.190.0080.00017.35
8.1.180.0040.00419.04
8.1.170.0030.00618.71
8.1.160.0040.00418.96
8.1.150.0000.00718.93
8.1.140.0000.00719.01
8.1.130.0080.00020.23
8.1.120.0000.00717.68
8.1.110.0050.00317.54
8.1.100.0000.00817.63
8.1.90.0030.00417.52
8.1.80.0070.00417.57
8.1.70.0000.00817.52
8.1.60.0020.00517.80
8.1.50.0000.00817.69
8.1.40.0000.00717.73
8.1.30.0040.00417.74
8.1.20.0050.00317.82
8.1.10.0030.00617.68
8.1.00.0000.00817.60
8.0.300.0060.00318.77
8.0.290.0060.00316.88
8.0.280.0000.00718.40
8.0.270.0000.00716.99
8.0.260.0000.00720.30
8.0.250.0070.00017.12
8.0.240.0070.00017.10
8.0.230.0070.00017.18
8.0.220.0070.00016.93
8.0.210.0000.00716.95
8.0.200.0060.00316.98
8.0.190.0030.00516.98
8.0.180.0060.00317.03
8.0.170.0040.00417.05
8.0.160.0000.00817.07
8.0.150.0050.00516.88
8.0.140.0070.00017.03
8.0.130.0050.00013.48
8.0.120.0000.00717.04
8.0.110.0040.00417.06
8.0.100.0030.00616.88
8.0.90.0040.00416.95
8.0.80.0130.00517.01
8.0.70.0040.00416.83
8.0.60.0050.00316.93
8.0.50.0030.00517.03
8.0.30.0060.01217.16
8.0.20.0120.00717.21
8.0.10.0050.00317.23
8.0.00.0140.00316.88
7.4.330.0000.00515.55
7.4.320.0000.00716.84
7.4.300.0030.00316.73
7.4.290.0100.00016.67
7.4.280.0040.00416.81
7.4.270.0030.00316.82
7.4.260.0060.00013.35
7.4.250.0000.00716.71
7.4.240.0040.00316.75
7.4.230.0000.00716.81
7.4.220.0000.00716.62
7.4.210.0090.00616.82
7.4.200.0000.00816.90
7.4.130.0110.00716.58
7.4.120.0040.01416.58
7.4.110.0040.01316.64
7.4.100.0140.00316.76
7.4.90.0110.00716.53
7.4.80.0200.00719.39
7.4.70.0030.01216.73
7.4.60.0060.00916.79
7.4.50.0060.00916.66
7.4.40.0150.00216.68
7.4.30.0120.00816.89
7.4.20.0130.01216.88
7.4.10.0160.00616.60
7.4.00.0090.01016.70
7.3.330.0030.00316.37
7.3.320.0030.00313.32
7.3.310.0030.00316.38
7.3.300.0000.00716.51
7.3.290.0110.00616.48
7.3.280.0120.00316.46
7.3.260.0060.01616.66
7.3.240.0080.00816.53
7.3.230.0100.01316.36
7.3.210.0100.00716.71
7.3.200.0100.00616.38
7.3.190.0090.00916.57
7.3.180.0120.01216.65
7.3.170.0100.00616.68
7.3.160.0090.00916.67
7.3.150.0030.01816.75
7.3.140.0160.00416.50
7.3.130.0080.01716.64
7.3.120.0140.00716.46
7.3.110.0080.01116.49
7.3.100.0100.00816.70
7.3.90.0050.01916.52
7.3.80.0070.01416.45
7.3.70.0110.01416.52
7.3.60.0070.01016.51
7.3.50.0070.01816.40
7.3.40.0060.01616.56
7.3.30.0120.00816.49
7.3.20.0120.00816.56
7.3.10.0100.00716.41
7.3.00.0110.00716.73
7.2.330.0030.01616.77
7.2.320.0070.01016.86
7.2.310.0070.01016.88
7.2.300.0060.01316.72
7.2.290.0110.00716.80
7.2.280.0030.01816.74
7.2.270.0170.00916.70
7.2.260.0150.00216.60
7.2.250.0100.01016.77
7.2.240.0100.01016.77
7.2.230.0130.01516.66
7.2.220.0130.01316.72
7.2.210.0090.00916.74
7.2.200.0170.00516.58
7.2.190.0060.01316.81
7.2.180.0140.00716.87
7.2.170.0090.00916.63
7.2.160.0120.00716.87
7.2.150.0140.00916.75
7.2.140.0090.00916.64
7.2.130.0100.01016.68
7.2.120.0160.00516.89
7.2.110.0090.01416.71
7.2.100.0110.00716.68
7.2.90.0120.00616.84
7.2.80.0110.01216.93
7.2.70.0090.01216.91
7.2.60.0130.01416.94
7.2.50.0130.00716.71
7.2.40.0070.01116.89
7.2.30.0120.00916.88
7.2.20.0150.00316.95
7.2.10.0070.01116.78
7.2.00.0070.01416.72

preferences:
115.31 ms | 403 KiB | 5 Q