3v4l.org

run code in 300+ PHP versions simultaneously
<?php $msg = 'grjqgbqgrqg0 38975893240- http://www.gg.pl/afa31f312u34b151j5b1598139189'; $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.70.0110.00718.43
8.3.60.0000.01518.43
8.3.50.0040.01116.54
8.3.40.0110.00419.00
8.3.30.0130.00318.79
8.3.20.0040.00420.34
8.3.10.0080.00021.96
8.3.00.0040.00420.94
8.2.190.0030.01416.58
8.2.180.0180.00416.63
8.2.170.0110.00322.96
8.2.160.0100.00319.29
8.2.150.0000.00725.66
8.2.140.0060.00324.66
8.2.130.0140.00026.16
8.2.120.0040.00421.00
8.2.110.0000.01019.16
8.2.100.0090.00317.97
8.2.90.0050.00319.82
8.2.80.0070.00018.28
8.2.70.0040.00417.93
8.2.60.0060.00318.16
8.2.50.0070.00018.16
8.2.40.0000.00820.24
8.2.30.0040.00419.18
8.2.20.0000.00718.09
8.2.10.0040.00418.14
8.2.00.0050.00218.13
8.1.280.0220.00025.92
8.1.270.0050.00322.05
8.1.260.0070.00026.35
8.1.250.0000.00828.09
8.1.240.0060.00322.54
8.1.230.0110.00020.97
8.1.220.0000.00817.79
8.1.210.0040.00418.77
8.1.200.0030.00717.60
8.1.190.0060.00317.35
8.1.180.0000.00918.10
8.1.170.0030.00618.77
8.1.160.0050.00318.93
8.1.150.0040.00421.95
8.1.140.0030.00619.52
8.1.130.0000.00720.62
8.1.120.0000.00717.58
8.1.110.0000.00717.52
8.1.100.0040.00417.63
8.1.90.0000.00817.51
8.1.80.0080.00017.46
8.1.70.0030.00317.61
8.1.60.0000.00817.63
8.1.50.0090.00017.64
8.1.40.0050.00517.43
8.1.30.0030.00517.66
8.1.20.0050.00317.75
8.1.10.0030.00517.80
8.1.00.0040.00417.65
8.0.300.0030.00620.03
8.0.290.0040.00416.75
8.0.280.0050.00218.46
8.0.270.0000.00817.16
8.0.260.0080.00018.97
8.0.250.0030.00317.10
8.0.240.0060.00317.04
8.0.230.0070.00016.93
8.0.220.0030.00316.99
8.0.210.0070.00016.86
8.0.200.0000.00717.10
8.0.190.0000.00816.99
8.0.180.0040.00417.08
8.0.170.0000.00817.00
8.0.160.0000.00817.11
8.0.150.0000.00816.96
8.0.140.0030.00316.89
8.0.130.0050.00313.48
8.0.120.0040.00416.90
8.0.110.0000.00716.84
8.0.100.0080.00016.93
8.0.90.0000.00716.84
8.0.80.0100.01017.03
8.0.70.0040.00416.84
8.0.60.0040.00417.07
8.0.50.0040.00417.04
8.0.30.0110.00817.20
8.0.20.0120.00717.45
8.0.10.0060.00317.15
8.0.00.0090.00916.99
7.4.330.0020.00215.55
7.4.320.0000.00816.73
7.4.300.0000.00616.72
7.4.290.0040.00416.85
7.4.280.0060.00316.74
7.4.270.0000.00716.80
7.4.260.0070.00016.77
7.4.250.0000.00816.82
7.4.240.0040.00416.74
7.4.230.0040.00416.89
7.4.220.0130.01316.72
7.4.210.0130.00316.77
7.4.200.0030.00516.71
7.4.160.0090.00616.78
7.4.150.0030.01417.40
7.4.140.0070.01017.86
7.4.130.0110.00616.66
7.4.120.0130.00616.74
7.4.110.0090.00916.66
7.4.100.0100.01016.56
7.4.90.0110.00716.68
7.4.80.0070.01119.39
7.4.70.0110.00716.73
7.4.60.0090.01316.73
7.4.50.0110.00416.77
7.4.40.0090.00616.56
7.4.30.0060.00916.71
7.4.00.0070.01015.26
7.3.330.0000.00613.34
7.3.320.0030.00313.50
7.3.310.0030.00516.41
7.3.300.0040.00416.55
7.3.290.0090.00716.45
7.3.280.0100.00916.44
7.3.270.0030.01517.40
7.3.260.0070.00916.46
7.3.250.0140.00716.54
7.3.240.0060.01216.66
7.3.230.0110.00616.53
7.3.210.0060.01016.70
7.3.200.0140.00716.74
7.3.190.0100.00716.75
7.3.180.0140.00816.53
7.3.170.0090.00616.77
7.3.160.0070.01016.74
7.3.120.0040.01215.30
7.3.110.0030.01614.92
7.3.100.0040.01114.59
7.3.90.0070.01115.07
7.3.80.0090.00615.20
7.3.70.0040.01414.96
7.3.60.0040.01114.89
7.3.50.0070.01015.08
7.3.40.0060.00314.86
7.3.30.0040.00715.14
7.3.20.0030.00916.57
7.3.10.0090.00416.65
7.3.00.0110.00416.72
7.2.330.0120.00616.89
7.2.320.0030.01316.71
7.2.310.0090.00916.73
7.2.300.0130.00317.00
7.2.290.0090.00916.90
7.2.250.0140.00715.30
7.2.240.0090.00615.25
7.2.230.0030.01514.92
7.2.220.0040.01115.34
7.2.210.0070.01315.27
7.2.200.0000.01615.52
7.2.190.0050.00515.23
7.2.180.0070.01015.05
7.2.170.0030.01015.13
7.2.130.0060.00917.08
7.2.120.0160.00916.86
7.2.110.0030.01516.94
7.2.100.0140.01116.98
7.2.90.0160.00417.14
7.2.80.0180.00616.95
7.2.70.0100.01017.00
7.2.60.0060.01017.10
7.2.50.0060.01016.63
7.2.40.0000.01616.97
7.2.30.0000.01417.14
7.2.20.0120.00817.14
7.2.10.0030.01017.03
7.2.00.0040.00816.79
7.1.330.0090.00615.73
7.1.320.0040.00715.85
7.1.310.0090.00915.55
7.1.300.0040.01115.99
7.1.290.0100.00615.94
7.1.280.0040.01115.68
7.1.270.0070.00315.70
7.1.260.0070.00716.05
7.1.250.0100.00315.66
7.1.200.0090.00016.00
7.1.80.1780.01316.67
7.1.70.2170.01015.26
7.1.60.0200.01435.25
7.1.50.0110.01534.92
7.1.40.0220.01334.82
7.1.30.0260.01134.92
7.1.20.0160.02034.80
7.1.10.0160.00316.78
7.1.00.0030.01116.92
7.0.200.0080.00817.04
7.0.190.0090.00816.92
7.0.180.0030.01616.56
7.0.170.0150.00916.36
7.0.160.0000.01516.34
7.0.150.0130.00416.60
7.0.140.0030.01616.48
7.0.130.0070.01016.76
7.0.120.0030.01216.64
7.0.110.0030.01416.30
7.0.100.0070.01116.42
7.0.90.0000.01616.29
7.0.80.0080.00816.55
7.0.70.0080.00916.60
7.0.60.0060.00916.27
7.0.50.0030.01216.47
7.0.40.0060.01216.75
7.0.30.0140.00316.40
7.0.20.0090.00916.56
7.0.10.0060.01116.51
7.0.00.0030.01316.53

preferences:
60.14 ms | 401 KiB | 5 Q