3v4l.org

run code in 300+ PHP versions simultaneously
<?php $strings = array("url: https://www.anysite/anything", "url: https://www.anysite/anything another word"); foreach ($strings as $string) { $url = preg_replace('/url:?\s*(\S+).*/i', '$1', $string); echo "$url\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.4.130.0110.00918.14
8.4.120.0140.00622.32
8.4.110.0040.00618.77
8.4.100.0130.00817.80
8.4.90.0100.01117.98
8.4.80.0060.00218.00
8.4.70.0110.00918.04
8.4.60.0110.01117.86
8.4.50.0120.00819.48
8.4.40.0060.00317.78
8.4.30.0080.00418.61
8.4.20.0070.01118.00
8.4.10.0030.00619.55
8.3.260.0100.00816.84
8.3.250.0100.00718.96
8.3.240.0090.01016.87
8.3.230.0120.00816.46
8.3.220.0110.00817.36
8.3.210.0110.00816.66
8.3.200.0110.00816.62
8.3.190.0090.00616.55
8.3.180.0080.00116.85
8.3.170.0180.00016.68
8.3.160.0000.00917.29
8.3.150.0000.00819.09
8.3.140.0090.00616.70
8.3.130.0030.00518.50
8.3.120.0060.00320.46
8.3.110.0080.00016.79
8.3.100.0040.00418.34
8.3.90.0000.00826.77
8.3.80.0090.00016.63
8.3.70.0040.01118.30
8.3.60.0150.00318.56
8.3.50.0180.00223.76
8.3.40.0120.00319.12
8.3.30.0090.00618.78
8.3.20.0080.00020.73
8.3.10.0040.00421.65
8.3.00.0040.00419.66
8.2.290.0110.00720.51
8.2.280.0060.00318.59
8.2.270.0070.00720.64
8.2.260.0000.01016.44
8.2.250.0110.00418.75
8.2.240.0030.00618.98
8.2.230.0000.00820.94
8.2.220.0030.00637.54
8.2.210.0150.00326.77
8.2.200.0120.00016.84
8.2.190.0090.00916.75
8.2.180.0150.00618.79
8.2.170.0070.00722.96
8.2.160.0070.00722.18
8.2.150.0090.00024.18
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0020.00519.89
8.2.110.0000.01021.15
8.2.100.0060.00617.84
8.2.90.0030.00617.75
8.2.80.0040.00419.09
8.2.70.0060.00317.75
8.2.60.0090.00317.80
8.2.50.0060.00318.07
8.2.40.0050.00318.22
8.2.30.0040.00418.00
8.2.20.0040.00418.07
8.2.10.0000.00819.43
8.2.00.0040.00419.37
8.1.330.0090.01016.34
8.1.320.0130.00516.10
8.1.310.0110.00016.51
8.1.300.0030.00918.51
8.1.290.0000.00930.84
8.1.280.0070.00725.92
8.1.270.0070.01123.90
8.1.260.0060.00326.35
8.1.250.0050.00328.09
8.1.240.0090.00317.48
8.1.230.0080.00317.77
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0040.00417.25
8.1.190.0050.00517.22
8.1.180.0040.00418.10
8.1.170.0070.00318.59
8.1.160.0050.00318.82
8.1.150.0030.00618.81
8.1.140.0070.00018.82
8.1.130.0000.00720.29
8.1.120.0070.00017.52
8.1.110.0000.00817.57
8.1.100.0050.00217.56
8.1.90.0030.00617.58
8.1.80.0030.00317.60
8.1.70.0030.00317.48
8.1.60.0050.00317.56
8.1.50.0000.00917.64
8.1.40.0040.00417.64
8.1.30.0060.00317.73
8.1.20.0030.00517.80
8.1.10.0040.00417.64
8.1.00.0000.00817.65
8.0.300.0070.00020.67
8.0.290.0090.00017.00
8.0.280.0000.00718.47
8.0.270.0070.00018.13
8.0.260.0040.00420.02
8.0.250.0000.00717.08
8.0.240.0000.00616.98
8.0.230.0070.00017.05
8.0.220.0000.00717.05
8.0.210.0000.00717.04
8.0.200.0040.00417.12
8.0.190.0000.00717.08
8.0.180.0050.00317.08
8.0.170.0030.00617.08
8.0.160.0070.00017.04
8.0.150.0070.00017.04
8.0.140.0040.00417.00
8.0.130.0030.00313.39
8.0.120.0020.00516.98
8.0.110.0040.00417.01
8.0.100.0050.00316.91
8.0.90.0030.00616.91
8.0.80.0060.00817.06
8.0.70.0040.00417.14
8.0.60.0000.00716.98
8.0.50.0030.00517.09
8.0.30.0100.00717.27
8.0.20.0080.01117.52
8.0.10.0080.00017.04
8.0.00.0090.00916.68
7.4.330.0000.00415.55
7.4.320.0030.00316.81
7.4.300.0030.00316.77
7.4.290.0040.00416.59
7.4.280.0080.00016.55
7.4.270.0030.00316.77
7.4.260.0030.00313.49
7.4.250.0030.00316.57
7.4.240.0040.00316.74
7.4.230.0040.00416.79
7.4.220.0050.00216.75
7.4.210.0090.00616.73
7.4.200.0040.00416.84
7.4.130.0160.00716.59
7.4.120.0130.01016.70
7.4.110.0140.00416.87
7.4.100.0100.00716.59
7.4.90.0140.00316.77
7.4.80.0130.00919.39
7.4.70.0030.01716.45
7.4.60.0060.01016.70
7.4.50.0040.01116.38
7.4.40.0030.01316.71
7.4.20.0130.00916.37
7.4.10.0170.00716.55
7.4.00.0060.01616.57
7.3.330.0040.00416.46
7.3.320.0000.00613.23
7.3.310.0030.00516.35
7.3.300.0040.00416.30
7.3.290.0080.00716.41
7.3.280.0140.00716.44
7.3.260.0090.01216.92
7.3.240.0100.01116.59
7.3.230.0030.01316.50
7.3.210.0080.00916.48
7.3.200.0070.01016.60
7.3.190.0060.01016.44
7.3.180.0120.00816.63
7.3.170.0120.00916.63
7.3.160.0120.01016.72
7.3.140.0090.01716.50
7.3.130.0080.01316.31
7.3.120.0090.00916.38
7.3.110.0080.01116.60
7.3.100.0070.01716.46
7.3.90.0100.01016.46
7.3.80.0090.00816.53
7.3.70.0050.01116.46
7.3.60.0040.01316.41
7.3.50.0120.00416.49
7.3.40.0110.00716.36
7.3.30.0060.00916.46
7.3.20.0130.00716.70
7.3.10.0090.00616.47
7.3.00.0060.01116.59
7.2.330.0200.00316.73
7.2.320.0100.00716.75
7.2.310.0070.01116.83
7.2.300.0170.00016.87
7.2.290.0140.00716.79
7.2.270.0160.00316.77
7.2.260.0120.01016.59
7.2.250.0120.00616.58
7.2.240.0070.01416.72
7.2.230.0130.00916.66
7.2.220.0040.01216.48
7.2.210.0070.01016.63
7.2.200.0110.00516.66
7.2.190.0060.01216.68
7.2.180.0060.01016.60
7.2.170.0070.01016.61
7.2.160.0060.01216.59
7.2.150.0120.00616.74
7.2.140.0110.00616.87
7.2.130.0180.00616.66
7.2.120.0060.01816.89
7.2.110.0060.01116.81
7.2.100.0030.01216.77
7.2.90.0100.00616.70
7.2.80.0080.00716.81
7.2.70.0060.01416.70
7.2.60.0060.01016.83
7.2.50.0100.00616.75
7.2.40.0030.01316.91
7.2.30.0000.01916.85
7.2.20.0070.01916.63
7.2.10.0100.00716.46
7.2.00.0090.01316.95

preferences:
106.38 ms | 403 KiB | 5 Q