3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "The text you want to filter goes here. http://google.com, https://www.youtube.com/watch?v=K_m7NEDMrV0,https://instagram.com/hellow/"; $ns = preg_replace_callback( '#\bhttps?://[^,\s()<>]+(?:\([\w\d]+\)|([^,[:punct:]\s]|/))#', function($match) { // print_r($match); return md5($match[0]); }, $string ); print_r($ns);

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.5.00.0130.00820.27
8.4.150.0010.00214.05
8.4.140.0100.01117.62
8.4.130.0130.00717.91
8.4.120.0080.01224.07
8.4.110.0120.01019.98
8.4.100.0130.00718.86
8.4.90.0070.00418.66
8.4.80.0080.00119.75
8.4.70.0060.00617.96
8.4.60.0130.00718.58
8.4.50.0080.00317.67
8.4.40.0100.00617.70
8.4.30.0200.00020.58
8.4.20.0160.00318.13
8.4.10.0060.00319.70
8.3.280.0080.01218.71
8.3.270.0120.00816.91
8.3.260.0110.00916.64
8.3.250.0090.00918.88
8.3.240.0100.01017.14
8.3.230.0110.00816.52
8.3.220.0040.00418.73
8.3.210.0050.00316.71
8.3.200.0050.00416.82
8.3.190.0060.00217.29
8.3.180.0100.00816.73
8.3.170.0160.00316.65
8.3.160.0090.00916.89
8.3.150.0120.00417.39
8.3.140.0040.01116.70
8.3.130.0060.00318.80
8.3.120.0120.00420.66
8.3.110.0110.00420.94
8.3.100.0040.00716.63
8.3.90.0040.00426.77
8.3.80.0030.00719.36
8.3.70.0060.00916.58
8.3.60.0140.00716.75
8.3.50.0160.00524.40
8.3.40.0060.00918.96
8.3.30.0120.00318.84
8.3.20.0000.00724.18
8.3.10.0030.00624.66
8.3.00.0040.00426.16
8.2.290.0100.00820.62
8.2.280.0140.00622.36
8.2.270.0090.00918.86
8.2.260.0100.00718.91
8.2.250.0040.00416.75
8.2.240.0040.00717.09
8.2.230.0060.00322.58
8.2.220.0030.00724.06
8.2.210.0070.00026.77
8.2.200.0000.00918.88
8.2.190.0140.00416.84
8.2.180.0070.01525.92
8.2.170.0140.00719.22
8.2.160.0070.00722.96
8.2.150.0060.00325.66
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0080.00026.35
8.2.110.0060.00320.51
8.2.100.0100.00718.03
8.2.90.0080.00018.16
8.2.80.0050.00319.03
8.2.70.0050.00317.75
8.2.60.0000.00817.75
8.2.50.0030.00618.05
8.2.40.0000.00718.34
8.2.30.0030.00718.17
8.2.20.0000.00818.07
8.2.10.0040.00419.41
8.2.00.0050.00219.34
8.1.330.0100.00823.72
8.1.320.0090.01116.19
8.1.310.0080.00616.79
8.1.300.0080.00816.37
8.1.290.0060.00330.84
8.1.280.0040.01125.92
8.1.270.0080.00023.99
8.1.260.0040.00428.09
8.1.250.0080.00028.09
8.1.240.0060.00322.61
8.1.230.0050.00520.93
8.1.220.0000.00817.74
8.1.210.0040.00418.91
8.1.200.0030.00517.48
8.1.190.0050.00317.35
8.1.180.0000.00818.10
8.1.170.0000.00819.06
8.1.160.0000.00718.93
8.1.150.0040.00419.03
8.1.140.0040.00418.90
8.1.130.0000.00820.18
8.1.120.0030.00617.52
8.1.110.0000.01017.56
8.1.100.0040.00417.50
8.1.90.0030.00517.63
8.1.80.0040.00417.66
8.1.70.0030.00317.62
8.1.60.0030.00617.64
8.1.50.0030.00617.73
8.1.40.0000.00917.58
8.1.30.0040.00417.79
8.1.20.0050.00317.80
8.1.10.0000.00817.75
8.1.00.0030.00517.63
8.0.300.0040.00420.03
8.0.290.0000.00816.58
8.0.280.0070.00018.30
8.0.270.0040.00417.97
8.0.260.0040.00418.66
8.0.250.0040.00417.06
8.0.240.0030.00317.02
8.0.230.0030.00317.03
8.0.220.0070.00016.89
8.0.210.0090.00016.99
8.0.200.0000.00717.13
8.0.190.0000.00716.98
8.0.180.0040.00417.02
8.0.170.0000.00916.91
8.0.160.0000.00717.10
8.0.150.0040.00417.04
8.0.140.0040.00416.93
8.0.130.0060.00013.52
8.0.120.0050.00316.97
8.0.110.0040.00416.87
8.0.100.0040.00416.92
8.0.90.0030.00516.94
8.0.80.0050.01317.02
8.0.70.0040.00416.94
8.0.60.0040.00417.04
8.0.50.0070.00017.06
8.0.30.0000.01717.25
8.0.20.0100.01017.17
8.0.10.0070.00017.05
8.0.00.0110.00716.93
7.4.330.0000.00515.55
7.4.320.0030.00316.74
7.4.300.0040.00416.73
7.4.290.0040.00416.86
7.4.280.0000.00716.81
7.4.270.0000.00816.71
7.4.260.0030.00313.59
7.4.250.0030.00616.67
7.4.240.0040.00416.70
7.4.230.0080.00016.66
7.4.220.0020.00516.73
7.4.210.0060.01016.67
7.4.200.0000.00716.61
7.4.130.0100.00716.53
7.4.120.0030.01416.87
7.4.110.0070.01116.59
7.4.100.0090.00916.50
7.4.90.0140.00416.79
7.4.80.0070.01116.64
7.4.70.0120.00616.78
7.4.60.0140.01016.57
7.4.50.0120.00816.64
7.4.40.0070.01016.64
7.4.30.0120.00616.61
7.4.20.0110.00716.75
7.4.10.0120.01216.62
7.4.00.0090.00916.49
7.3.330.0000.00716.41
7.3.320.0050.00013.41
7.3.310.0000.00716.45
7.3.300.0000.00616.41
7.3.290.0090.00416.38
7.3.260.0120.01216.64
7.3.250.0160.00316.56
7.3.240.0070.01116.62
7.3.230.0150.00316.64
7.3.220.0130.00516.35
7.3.210.0160.00716.68
7.3.200.0110.00716.60
7.3.190.0150.00316.73
7.3.180.0130.01016.69
7.3.170.0070.01016.60
7.3.160.0030.01316.62
7.3.150.0070.01016.86
7.3.140.0090.00916.66
7.3.130.0120.00616.51
7.3.120.0120.00616.69
7.3.110.0110.01416.46
7.3.100.0090.01216.37
7.3.90.0110.01016.67
7.3.80.0210.00516.68
7.3.70.0100.01316.46
7.3.60.0100.00716.54
7.3.50.0150.00816.49
7.3.40.0160.00816.57
7.3.30.0090.00916.46
7.3.20.0090.00916.59
7.3.10.0140.01016.56
7.3.00.0090.00916.46

preferences:
31.31 ms | 403 KiB | 5 Q