3v4l.org

run code in 300+ PHP versions simultaneously
<?php $word = 'Sing'; $urls = ['http://I_like_to_sing.mp3', 'http://Another_song.mp3']; $regex = "/https?:\/\/(?=.*$word).+\.mp3/i"; print_r(array_filter($urls, function ($v) use ($regex) { return preg_match($regex, $v); }));

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.0090.01217.81
8.4.130.0100.01017.95
8.4.120.0100.00920.47
8.4.110.0130.00618.90
8.4.100.0120.00917.68
8.4.90.0130.00817.92
8.4.80.0120.00822.43
8.4.70.0140.00618.00
8.4.60.0100.01218.67
8.4.50.0050.01620.65
8.4.40.0120.00819.73
8.4.30.0160.00317.75
8.4.20.0080.00820.37
8.4.10.0000.01017.94
8.3.270.0110.00816.75
8.3.260.0100.01016.56
8.3.250.0130.00618.80
8.3.240.0160.00316.51
8.3.230.0040.00916.72
8.3.220.0040.00317.22
8.3.210.0130.00516.73
8.3.200.0030.00516.76
8.3.190.0120.00617.32
8.3.180.0110.00716.55
8.3.170.0080.01116.86
8.3.160.0060.01220.41
8.3.150.0160.00319.07
8.3.140.0050.00317.08
8.3.130.0080.00018.52
8.3.120.0120.00619.16
8.3.110.0060.00316.63
8.3.100.0060.00324.06
8.3.90.0130.00726.77
8.3.80.0090.00018.68
8.3.70.0150.00716.63
8.3.60.0070.00718.31
8.3.50.0150.00518.08
8.3.40.0100.00719.14
8.3.30.0150.00418.76
8.3.20.0040.00420.78
8.3.10.0050.00322.02
8.3.00.0000.00821.95
8.2.290.0150.00422.17
8.2.280.0100.00918.71
8.2.270.0130.00617.02
8.2.260.0110.00717.03
8.2.250.0000.00916.85
8.2.240.0110.00718.96
8.2.230.0120.00020.94
8.2.220.0060.00337.54
8.2.210.0070.00726.77
8.2.200.0060.00318.63
8.2.190.0150.00616.59
8.2.180.0040.01116.63
8.2.170.0160.00022.96
8.2.160.0100.00722.43
8.2.150.0110.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00019.05
8.2.120.0070.00026.35
8.2.110.0060.00320.42
8.2.100.0040.00718.03
8.2.90.0040.00417.85
8.2.80.0030.00619.00
8.2.70.0110.00018.03
8.2.60.0030.00718.09
8.2.50.0030.00518.10
8.2.40.0060.00321.27
8.2.30.0040.00419.26
8.2.20.0050.00218.12
8.2.10.0040.00419.34
8.2.00.0070.00018.16
8.1.330.0110.00816.71
8.1.320.0110.01116.58
8.1.310.0070.00018.52
8.1.300.0060.00318.21
8.1.290.0090.00018.88
8.1.280.0110.00425.92
8.1.270.0030.00619.00
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0000.00822.16
8.1.230.0080.00417.82
8.1.220.0000.00817.74
8.1.210.0030.00618.77
8.1.200.0060.00317.47
8.1.190.0000.00817.50
8.1.180.0080.00018.10
8.1.170.0030.00518.76
8.1.160.0040.00418.86
8.1.150.0040.00418.91
8.1.140.0040.00418.87
8.1.130.0000.00720.13
8.1.120.0000.00717.59
8.1.110.0030.00617.51
8.1.100.0000.00717.60
8.1.90.0000.00817.53
8.1.80.0000.00017.60
8.1.70.0040.00417.67
8.1.60.0030.00617.66
8.1.50.0000.00817.72
8.1.40.0040.00417.57
8.1.30.0080.00017.80
8.1.20.0050.00317.86
8.1.10.0040.00417.70
8.1.00.0030.00517.61
8.0.300.0000.00718.87
8.0.290.0090.00016.88
8.0.280.0050.00218.45
8.0.270.0030.00517.18
8.0.260.0030.00318.52
8.0.250.0070.00017.04
8.0.240.0040.00417.03
8.0.230.0050.00217.07
8.0.220.0030.00316.90
8.0.210.0040.00417.04
8.0.200.0030.00317.06
8.0.190.0040.00417.09
8.0.180.0080.00017.09
8.0.170.0000.00817.05
8.0.160.0030.00316.98
8.0.150.0060.00317.00
8.0.140.0000.00717.05
8.0.130.0000.00713.43
8.0.120.0000.00917.01
8.0.110.0000.00716.86
8.0.100.0040.00417.01
8.0.90.0080.00017.09
8.0.80.0120.00316.95
8.0.70.0040.00416.83
8.0.60.0050.00316.94
8.0.50.0040.00417.00
8.0.30.0070.01017.15
8.0.20.0070.01117.40
8.0.10.0080.00017.20
8.0.00.0100.00816.98
7.4.330.0050.00015.55
7.4.320.0030.00316.60
7.4.300.0000.00616.63
7.4.290.0000.00716.55
7.4.280.0040.00416.63
7.4.270.0060.00316.84
7.4.260.0030.00316.58
7.4.250.0050.00316.72
7.4.240.0000.00716.76
7.4.230.0000.00716.50
7.4.220.0000.01016.70
7.4.210.0090.00716.77
7.4.200.0000.00716.81
7.4.160.0070.00816.74
7.4.140.0030.01417.86
7.4.130.0030.01416.65
7.4.120.0080.01116.87
7.4.110.0120.00616.64
7.4.100.0100.00716.67
7.4.90.0070.01016.75
7.4.80.0120.00619.39
7.4.70.0090.00916.84
7.4.60.0040.01216.53
7.4.50.0080.00616.72
7.4.40.0180.00016.63
7.4.00.0090.00615.23
7.3.330.0000.00613.46
7.3.320.0030.00313.33
7.3.310.0000.00716.61
7.3.300.0000.00716.52
7.3.290.0030.00316.42
7.3.280.0030.01516.46
7.3.260.0120.00916.65
7.3.240.0090.00916.58
7.3.230.0170.00016.53
7.3.210.0090.00616.68
7.3.200.0060.01516.73
7.3.190.0060.01616.46
7.3.180.0090.00616.40
7.3.170.0120.00616.74
7.3.160.0120.00316.73
7.3.10.0790.00314.97
7.3.00.0600.01014.68
7.2.330.0100.00716.72
7.2.320.0080.00816.68
7.2.310.0070.01716.80
7.2.300.0030.01316.76
7.2.290.0140.00316.66
7.2.130.0580.01315.02
7.2.120.0770.00314.99
7.2.110.0660.00315.13
7.2.100.0490.01015.10
7.2.90.0790.01315.09
7.2.80.0780.00315.12
7.2.70.0840.00014.96
7.2.60.0480.01314.86
7.2.50.1570.00314.93
7.2.40.0650.00315.09
7.2.30.0770.00315.03
7.2.20.0550.00415.14
7.2.10.0570.00615.00
7.2.00.0650.00715.26
7.1.250.0710.01014.17

preferences:
147.81 ms | 403 KiB | 5 Q