3v4l.org

run code in 300+ PHP versions simultaneously
<?php $msg = 'grjqgbqgrqg0 38975893240- http://www.gg.pl/afa31f312u34b151j5b1598139189 1234 http://www.fb.com/14'; $adNr = preg_replace_callback('#http://[^\s]+#', function($ma) { if (substr($ma[0], 0, 17) !== 'http://www.gg.pl/') { return $ma[0]; } }, $msg); echo $adNr;

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.0090.00618.48
8.3.50.0100.00418.32
8.3.40.0070.00718.92
8.3.30.0110.00418.85
8.3.20.0000.00720.33
8.3.10.0060.00322.14
8.3.00.0000.00820.62
8.2.180.0170.00316.88
8.2.170.0070.00722.96
8.2.160.0070.00719.46
8.2.150.0070.00025.66
8.2.140.0040.00424.66
8.2.130.0040.00419.27
8.2.120.0080.00026.35
8.2.110.0050.00520.93
8.2.100.0060.00620.36
8.2.90.0000.00819.43
8.2.80.0040.00417.97
8.2.70.0040.00417.93
8.2.60.0000.01018.16
8.2.50.0090.00018.10
8.2.40.0080.00020.38
8.2.30.0040.00419.45
8.2.20.0040.00418.06
8.2.10.0040.00418.20
8.2.00.0070.00018.15
8.1.280.0160.00625.92
8.1.270.0000.00822.14
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0090.00022.20
8.1.230.0040.00820.79
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0080.00417.35
8.1.190.0040.00417.38
8.1.180.0050.00318.10
8.1.170.0050.00318.70
8.1.160.0000.00718.96
8.1.150.0000.00822.10
8.1.140.0000.00719.61
8.1.130.0000.00720.61
8.1.120.0000.00817.47
8.1.110.0030.00517.62
8.1.100.0040.00417.63
8.1.90.0050.00217.66
8.1.80.0000.00717.61
8.1.70.0030.00317.54
8.1.60.0050.00317.63
8.1.50.0080.00017.65
8.1.40.0090.00317.58
8.1.30.0050.00517.68
8.1.20.0000.00817.64
8.1.10.0030.00517.63
8.1.00.0040.00417.56
8.0.300.0050.00319.76
8.0.290.0040.00416.88
8.0.280.0040.00418.46
8.0.270.0030.00317.29
8.0.260.0050.00218.90
8.0.250.0070.00017.10
8.0.240.0030.00617.17
8.0.230.0040.00416.91
8.0.220.0030.00316.98
8.0.210.0070.00017.00
8.0.200.0030.00317.03
8.0.190.0040.00417.05
8.0.180.0000.00717.07
8.0.170.0050.00217.02
8.0.160.0090.00017.12
8.0.150.0070.00016.96
8.0.140.0000.00816.98
8.0.130.0040.00413.39
8.0.120.0050.00316.89
8.0.110.0070.00016.86
8.0.100.0000.00717.04
8.0.90.0030.00417.05
8.0.80.0030.01316.92
8.0.70.0000.00817.14
8.0.60.0000.00717.04
8.0.50.0050.00216.86
8.0.30.0100.00917.33
8.0.20.0060.01217.45
8.0.10.0040.00417.02
8.0.00.0110.00617.11
7.4.330.0020.00215.55
7.4.320.0030.00616.81
7.4.300.0000.00616.81
7.4.290.0000.00716.60
7.4.280.0050.00316.81
7.4.270.0070.00016.70
7.4.260.0090.00016.70
7.4.250.0040.00416.53
7.4.240.0080.00016.80
7.4.230.0030.00316.55
7.4.220.0070.01116.81
7.4.210.0030.01216.84
7.4.200.0000.00716.61
7.4.160.0050.01116.75
7.4.150.0140.00717.40
7.4.140.0140.00617.86
7.4.130.0110.00716.61
7.4.120.0100.01216.76
7.4.110.0130.00316.91
7.4.100.0030.01416.63
7.4.90.0110.00716.63
7.4.80.0040.01819.39
7.4.70.0130.00316.93
7.4.60.0090.01216.56
7.4.50.0040.01116.82
7.4.40.0130.00316.69
7.4.30.0070.01016.72
7.4.00.0110.00715.30
7.3.330.0060.00013.37
7.3.320.0060.00013.50
7.3.310.0000.00716.33
7.3.300.0070.00016.47
7.3.290.0080.00916.41
7.3.280.0060.01016.43
7.3.270.0070.01017.40
7.3.260.0090.00816.68
7.3.250.0130.00916.62
7.3.240.0090.00916.72
7.3.230.0160.00016.66
7.3.210.0120.00416.48
7.3.200.0040.01216.57
7.3.190.0100.00616.41
7.3.180.0120.00316.80
7.3.170.0120.00316.88
7.3.160.0130.00316.78
7.2.330.0120.00616.73
7.2.320.0090.01216.96
7.2.310.0140.00516.82
7.2.300.0130.00316.74
7.2.290.0100.01016.79
7.2.60.0030.01017.13
7.1.200.0030.00915.89
7.1.80.2060.00616.57
7.1.70.2370.01315.27
7.1.60.0340.01433.42
7.1.50.2120.01233.25
7.1.40.2630.02032.77
7.1.30.2680.02832.89
7.1.20.0500.00933.20
7.1.10.1950.01215.01
7.1.00.2540.01015.16
7.0.200.3130.01015.11
7.0.190.2060.01315.27
7.0.180.2500.00914.80
7.0.170.0500.00714.80
7.0.160.2180.00914.66
7.0.150.2180.01414.53
7.0.140.1950.00814.63
7.0.130.2820.01514.82
7.0.120.2760.00614.72
7.0.110.2520.00614.51
7.0.100.3330.00914.95
7.0.90.1860.00914.86
7.0.80.2650.00914.64
7.0.70.2540.01114.89
7.0.60.2580.00914.58
7.0.50.2230.01714.65
7.0.40.2410.01214.84
7.0.30.0410.00714.77
7.0.20.2980.01114.71
7.0.10.2250.00914.74
7.0.00.3130.01014.99

preferences:
33.35 ms | 400 KiB | 5 Q