3v4l.org

run code in 300+ PHP versions simultaneously
<?php $urlRegex = '#(^|\\b)https?:\/\/[\w.?;:\)"=&_/\#]+#'; $text = 'example url [http://www.example.com/path/index?ATY345=6&index=2#utm=feafet/] blabhablha'; $text = preg_replace($urlRegex, '', $text); print("text is $text \n");

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.60.0070.01418.43
8.3.50.0150.00321.23
8.3.40.0110.00719.02
8.3.30.0120.00318.75
8.3.20.0070.00020.30
8.3.10.0050.00221.77
8.3.00.0040.00420.34
8.2.180.0150.00318.79
8.2.170.0070.00722.96
8.2.160.0110.00320.39
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0060.00326.16
8.2.120.0040.00417.75
8.2.110.0100.00019.17
8.2.100.0090.00317.75
8.2.90.0080.00019.13
8.2.80.0050.00317.97
8.2.70.0030.00517.50
8.2.60.0050.00317.93
8.2.50.0000.00918.07
8.2.40.0040.00419.24
8.2.30.0040.00422.36
8.2.20.0040.00417.70
8.2.10.0040.00418.05
8.2.00.0040.00418.04
8.1.280.0160.00325.92
8.1.270.0050.00323.82
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0060.00322.79
8.1.230.0130.00317.48
8.1.220.0060.00317.79
8.1.210.0040.00418.77
8.1.200.0040.00417.36
8.1.190.0060.00317.36
8.1.180.0000.00718.10
8.1.170.0060.00318.65
8.1.160.0000.00821.96
8.1.150.0040.00418.78
8.1.140.0040.00417.45
8.1.130.0000.00817.56
8.1.120.0000.00717.62
8.1.110.0040.00417.52
8.1.100.0050.00317.51
8.1.90.0000.00717.55
8.1.80.0080.00017.56
8.1.70.0030.00317.44
8.1.60.0080.00017.50
8.1.50.0000.00817.48
8.1.40.0030.00517.59
8.1.30.0050.00317.70
8.1.20.0040.00417.70
8.1.10.0080.00017.56
8.1.00.0040.00417.61
8.0.300.0070.00018.77
8.0.290.0000.00716.63
8.0.280.0000.00818.52
8.0.270.0040.00717.29
8.0.260.0030.00617.14
8.0.250.0000.00717.09
8.0.240.0000.00617.07
8.0.230.0070.00017.10
8.0.220.0060.00316.98
8.0.210.0000.00717.04
8.0.200.0030.00317.09
8.0.190.0000.00817.04
8.0.180.0060.00316.95
8.0.170.0030.00616.94
8.0.160.0030.00316.99
8.0.150.0000.00717.05
8.0.140.0000.00816.88
8.0.130.0050.00013.45
8.0.120.0040.00417.02
8.0.110.0040.00417.08
8.0.100.0080.00016.94
8.0.90.0000.00717.14
8.0.80.0120.00317.00
8.0.70.0030.00516.94
8.0.60.0000.00817.07
8.0.50.0000.00716.97
8.0.30.0090.00817.11
8.0.20.0140.00717.40
8.0.10.0030.00517.13
8.0.00.0060.01317.10
7.4.330.0030.00315.08
7.4.320.0000.00616.63
7.4.300.0030.00316.62
7.4.290.0040.00416.74
7.4.280.0050.00316.75
7.4.270.0030.00316.64
7.4.260.0070.00016.72
7.4.250.0070.00016.53
7.4.240.0030.00516.74
7.4.230.0000.00716.77
7.4.220.0090.00916.63
7.4.210.0060.00916.81
7.4.200.0030.00316.74
7.4.160.0150.00616.41
7.4.150.0040.01317.40
7.4.140.0100.00917.86
7.4.130.0070.01216.72
7.4.120.0090.01116.58
7.4.110.0150.00316.73
7.4.100.0070.01016.54
7.4.90.0120.00616.58
7.4.80.0110.01119.39
7.4.70.0100.00916.69
7.4.60.0130.00316.73
7.4.50.0060.00016.80
7.4.40.0160.00716.63
7.4.30.0100.01316.67
7.4.00.0090.00614.93
7.3.330.0000.00513.26
7.3.320.0030.00313.33
7.3.310.0070.00016.24
7.3.300.0070.00016.39
7.3.290.0070.01116.28
7.3.280.0120.00516.40
7.3.270.0120.00617.40
7.3.260.0180.00416.45
7.3.250.0140.00516.59
7.3.240.0100.01016.38
7.3.230.0090.00916.39
7.3.210.0040.01316.67
7.3.200.0070.01016.74
7.3.190.0090.00616.54
7.3.180.0060.01016.84
7.3.170.0070.01016.41
7.3.160.0030.01316.62
7.2.330.0120.00616.81
7.2.320.0090.01616.81
7.2.310.0070.01016.64
7.2.300.0030.01316.75
7.2.290.0070.01116.73
7.2.00.0040.00719.49
7.1.100.0140.00718.16
7.1.70.0000.00917.36
7.1.60.0090.00619.11
7.1.50.0100.01317.16
7.1.00.0030.07722.30
7.0.200.0040.00416.96
7.0.60.0130.06720.02
7.0.50.0000.04717.88
7.0.40.0070.05020.13
7.0.30.0370.07020.35
7.0.20.0170.04320.20
7.0.10.0270.05320.18
7.0.00.0130.07719.99
5.6.280.0030.06320.85
5.6.210.0130.04020.70
5.6.200.0130.07018.09
5.6.190.0030.04320.32
5.6.180.0300.04720.61
5.6.170.0230.05720.48
5.6.160.0000.04720.62
5.6.150.0100.05718.18
5.6.140.0070.04718.11
5.6.130.0000.04318.09
5.6.120.0100.05021.04
5.6.110.0170.03021.02
5.6.100.0070.08321.10
5.6.90.0170.06320.96
5.6.80.0130.07720.48
5.6.70.0200.07320.36
5.5.350.0100.04320.52
5.5.340.0200.07018.04
5.5.330.0100.04320.23
5.5.320.0100.08320.20
5.5.310.0300.07320.32
5.5.300.0030.05018.02
5.5.290.0030.07317.98
5.5.280.0070.05020.64
5.5.270.0070.08020.95
5.5.260.0070.07020.65
5.5.250.0070.07020.71
5.5.240.0130.07020.15
5.4.450.0730.06019.49
5.4.440.0770.05319.49
5.4.430.0770.06319.62
5.4.420.1000.05719.13
5.4.410.1030.05019.14
5.4.400.1130.06319.31
5.4.390.1000.05019.20
5.4.380.1070.04719.28
5.4.370.0900.05719.20
5.4.360.1000.05319.00
5.4.350.0730.05019.30
5.4.340.0800.05319.10
5.4.320.0800.04719.10
5.4.310.0730.05019.14
5.4.300.0830.04018.99
5.4.290.0830.04319.12
5.4.280.0670.06319.22
5.4.270.0800.04318.77
5.4.260.0870.05719.19
5.4.250.0830.04719.07
5.4.240.0730.05319.21
5.4.230.0730.05319.08
5.4.220.0670.06019.11
5.4.210.0130.05019.30
5.4.200.0200.05018.98
5.4.190.0030.06018.80
5.4.180.0630.04719.29
5.4.170.0800.04718.76
5.4.160.0800.05019.12
5.4.150.0930.06019.14
5.4.140.1030.04316.25
5.4.130.0900.05716.49
5.4.120.0970.05016.59
5.4.110.0770.04716.18
5.4.100.0900.05716.45
5.4.90.0830.04316.54
5.4.80.0700.05316.52
5.4.70.0030.07016.38
5.4.60.0000.03316.37
5.4.50.0030.06316.28
5.4.40.0000.08016.36
5.4.30.0070.04016.15
5.4.20.0330.05316.36
5.4.10.0270.06316.37

preferences:
56.48 ms | 401 KiB | 5 Q