3v4l.org

run code in 300+ PHP versions simultaneously
<?php $word = 'Song'; $string = "some words http://I_like_to_sing.mp3 and then some other words http://Another_song.mp3 and some words at the end..."; $regex = "/(https?:\/\/(?![^.]*$word).+?\.mp3)/i"; preg_match_all($regex, $string, $matches); print_r($matches[1]);

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.140.0140.00917.83
8.4.130.0120.01119.68
8.4.120.0070.00320.49
8.4.110.0130.00822.43
8.4.100.0080.00917.79
8.4.90.0050.00518.64
8.4.80.0090.00318.23
8.4.70.0060.01217.89
8.4.60.0090.00318.92
8.4.50.0110.01017.98
8.4.40.0030.01717.86
8.4.30.0040.01717.91
8.4.20.0160.00320.55
8.4.10.0090.00019.84
8.3.270.0140.00716.82
8.3.260.0130.00816.55
8.3.250.0130.00719.07
8.3.240.0090.00918.89
8.3.230.0120.00616.54
8.3.220.0110.00816.96
8.3.210.0080.00816.91
8.3.200.0040.00516.92
8.3.190.0130.00716.98
8.3.180.0110.00816.78
8.3.170.0070.01116.49
8.3.160.0120.00620.69
8.3.150.0150.00417.01
8.3.140.0070.00718.71
8.3.130.0030.00518.33
8.3.120.0060.00318.74
8.3.110.0030.00716.61
8.3.100.0040.00416.58
8.3.90.0060.00326.77
8.3.80.0040.00417.97
8.3.70.0160.00318.31
8.3.60.0130.01018.30
8.3.50.0140.00418.28
8.3.40.0120.00318.96
8.3.30.0100.00318.98
8.3.20.0000.00721.79
8.3.10.0000.00820.73
8.3.00.0040.00417.63
8.2.290.0100.00820.50
8.2.280.0100.00820.52
8.2.270.0060.01217.00
8.2.260.0070.00716.58
8.2.250.0110.00718.54
8.2.240.0030.00616.91
8.2.230.0030.00620.94
8.2.220.0000.00824.06
8.2.210.0040.00426.77
8.2.200.0030.00618.79
8.2.190.0120.00616.64
8.2.180.0090.00916.88
8.2.170.0000.01419.10
8.2.160.0140.00022.96
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00720.07
8.2.110.0150.00620.53
8.2.100.0110.00017.85
8.2.90.0050.00318.16
8.2.80.0030.00519.33
8.2.70.0080.00017.88
8.2.60.0050.00318.05
8.2.50.0000.00818.07
8.2.40.0060.00320.00
8.2.30.0070.00018.07
8.2.20.0050.00218.11
8.2.10.0040.00419.43
8.2.00.0070.00018.20
8.1.330.0140.00422.05
8.1.320.0180.00316.14
8.1.310.0150.00416.73
8.1.300.0090.00018.54
8.1.290.0070.00330.84
8.1.280.0070.00725.92
8.1.270.0050.00318.86
8.1.260.0030.00626.35
8.1.250.0080.00028.09
8.1.240.0040.00422.05
8.1.230.0060.00620.82
8.1.220.0060.00317.91
8.1.210.0060.00318.84
8.1.200.0030.00717.35
8.1.190.0070.00217.11
8.1.180.0000.00818.10
8.1.170.0030.00618.63
8.1.160.0000.00818.84
8.1.150.0040.00418.89
8.1.140.0050.00218.79
8.1.130.0070.00020.10
8.1.120.0040.00417.43
8.1.110.0030.00717.41
8.1.100.0040.00417.43
8.1.90.0040.00417.55
8.1.80.0000.00817.59
8.1.70.0030.00317.55
8.1.60.0040.00417.69
8.1.50.0000.00917.59
8.1.40.0030.00617.59
8.1.30.0000.00917.67
8.1.20.0040.00417.71
8.1.10.0000.00817.69
8.1.00.0070.00317.72
8.0.300.0070.00020.04
8.0.290.0070.00016.75
8.0.280.0040.00418.47
8.0.270.0070.00016.88
8.0.260.0030.00318.37
8.0.250.0040.00416.99
8.0.240.0070.00016.98
8.0.230.0050.00316.99
8.0.220.0030.00716.90
8.0.210.0030.00316.99
8.0.200.0000.00717.05
8.0.190.0000.00716.98
8.0.180.0040.00417.08
8.0.170.0060.00317.05
8.0.160.0030.00517.02
8.0.150.0040.00416.96
8.0.140.0000.00716.89
8.0.130.0060.00013.52
8.0.120.0020.00516.86
8.0.110.0040.00416.92
8.0.100.0040.00417.00
8.0.90.0020.00517.13
8.0.80.0130.00617.01
8.0.70.0040.00416.88
8.0.60.0040.00416.91
8.0.50.0040.00416.93
8.0.30.0140.00017.08
8.0.20.0090.00917.12
8.0.10.0040.00417.16
8.0.00.0120.01116.96
7.4.330.0000.00615.55
7.4.320.0060.00316.67
7.4.300.0040.00416.68
7.4.290.0000.00716.62
7.4.280.0070.00016.63
7.4.270.0090.00016.64
7.4.260.0000.00816.74
7.4.250.0040.00416.72
7.4.240.0050.00216.67
7.4.230.0040.00416.45
7.4.220.0090.00016.46
7.4.210.0100.00716.61
7.4.200.0050.00216.59
7.4.160.0090.00716.76
7.4.140.0130.01017.86
7.4.130.0080.01316.51
7.4.120.0030.01316.66
7.4.110.0090.00916.62
7.4.100.0070.01016.87
7.4.90.0050.01216.64
7.4.80.0040.01819.39
7.4.70.0130.00316.89
7.4.60.0070.01116.45
7.4.50.0040.01216.42
7.4.40.0030.01816.56
7.4.00.0050.01214.85
7.3.330.0000.00613.09
7.3.320.0030.00313.19
7.3.310.0030.00316.37
7.3.300.0070.00316.39
7.3.290.0000.00716.36
7.3.280.0100.00816.39
7.3.260.0100.01116.55
7.3.240.0080.01016.56
7.3.230.0060.00916.71
7.3.210.0100.00616.43
7.3.200.0090.01616.41
7.3.190.0070.01016.30
7.3.180.0090.00616.84
7.3.170.0130.00616.69
7.3.160.0070.01016.88
7.3.120.0060.01314.64
7.3.110.0060.01314.85
7.3.100.0070.00315.13
7.3.90.0000.01214.74
7.3.80.0040.01115.09
7.3.70.0090.00615.09
7.3.60.0090.00614.82
7.3.50.0080.00815.12
7.3.40.0060.00915.04
7.3.30.0030.01314.97
7.3.20.0040.00416.79
7.3.10.0980.00415.54
7.3.00.0670.00315.75
7.2.330.0110.00816.75
7.2.320.0040.01816.52
7.2.310.0110.00616.47
7.2.300.0070.01116.64
7.2.290.0150.00316.71
7.2.250.0120.00614.92
7.2.240.0070.01315.14
7.2.230.0130.00314.95
7.2.220.0060.00615.00
7.2.210.0070.01015.16
7.2.200.0080.00415.07
7.2.190.0030.01015.04
7.2.180.0000.01715.24
7.2.170.0060.00615.11
7.2.130.1500.01015.16
7.2.120.1690.00715.05
7.2.110.1580.00615.07
7.2.100.1640.01015.20
7.2.90.2040.01014.98
7.2.80.1680.01715.14
7.2.70.1770.00315.27
7.2.60.1410.01015.05
7.2.50.1570.01314.96
7.2.40.1850.00615.14
7.2.30.2300.01315.03
7.2.20.1710.00715.05
7.2.10.1930.00315.09
7.2.00.2480.00715.21
7.1.330.0110.00715.87
7.1.320.0110.00415.86
7.1.310.0090.00316.10
7.1.300.0070.00315.82
7.1.290.0100.00015.67
7.1.280.0070.00716.06
7.1.270.0100.00015.81
7.1.260.0070.00715.85
7.1.250.1500.00313.83

preferences:
145.82 ms | 403 KiB | 5 Q