3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = 'test //ita https://example.com lics// test // another // one'; $regex = '~(?<!https:|http:)//\s*((?:https?://|(?!//).)*)(?<!\s)\s*//~'; preg_match_all($regex, $text, $matches); var_export($matches[1]);

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.20.0050.00320.11
8.5.10.0100.00916.96
8.5.00.0140.00720.10
8.4.170.0090.01320.57
8.4.160.0090.01322.18
8.4.150.0020.00014.05
8.4.140.0140.00717.89
8.4.130.0060.00517.97
8.4.120.0120.00820.71
8.4.110.0120.00822.52
8.4.100.0070.01020.62
8.4.90.0130.00718.81
8.4.80.0130.00420.56
8.4.70.0100.00918.18
8.4.60.0110.00918.85
8.4.50.0090.01220.29
8.4.40.0100.01018.09
8.4.30.0090.00620.47
8.4.20.0100.01018.09
8.4.10.0000.00819.82
8.3.290.0110.00821.01
8.3.280.0120.01118.66
8.3.270.0110.00916.77
8.3.260.0060.00616.59
8.3.250.0090.00918.62
8.3.240.0140.00618.87
8.3.230.0120.00816.50
8.3.220.0090.00918.83
8.3.210.0090.01218.50
8.3.200.0050.00416.55
8.3.190.0090.01116.84
8.3.180.0090.01016.65
8.3.170.0060.01218.87
8.3.160.0140.00416.96
8.3.150.0110.00817.24
8.3.140.0160.00316.98
8.3.130.0000.00818.38
8.3.120.0030.00618.71
8.3.110.0130.00718.30
8.3.100.0120.00618.59
8.3.90.0000.00826.77
8.3.80.0090.00018.30
8.3.70.0030.01718.31
8.3.60.0170.00018.61
8.3.50.0150.00718.38
8.3.40.0000.01921.86
8.3.30.0150.00420.34
8.3.20.0100.01325.66
8.3.10.0090.01225.66
8.3.00.0140.00725.66
8.2.300.0120.00822.12
8.2.290.0090.00920.46
8.2.280.0070.01218.59
8.2.270.0120.00616.94
8.2.260.0150.00416.69
8.2.250.0090.00918.70
8.2.240.0070.01117.11
8.2.230.0140.00720.94
8.2.220.0130.00324.06
8.2.210.0040.00426.77
8.2.200.0060.00318.68
8.2.190.0040.01216.75
8.2.180.0140.00016.63
8.2.170.0100.01019.13
8.2.160.0070.00722.96
8.2.150.0180.00425.66
8.2.140.0190.00325.66
8.2.130.0190.00625.66
8.2.120.0150.00425.66
8.2.110.0150.00425.66
8.2.100.0110.00425.66
8.2.90.0130.00325.66
8.2.80.0040.01225.66
8.2.70.0120.00325.66
8.2.60.0160.00025.66
8.2.50.0160.00025.66
8.2.40.0040.01125.66
8.2.30.0090.00625.66
8.2.20.0080.00825.66
8.2.10.0060.00925.66
8.2.00.0040.01225.66
8.1.340.0130.00717.86
8.1.330.0120.00621.98
8.1.320.0070.00416.25
8.1.310.0070.01116.88
8.1.300.0160.00017.98
8.1.290.0120.00030.84
8.1.280.0210.00025.92
8.1.270.0090.00625.66
8.1.260.0110.00425.66
8.1.250.0070.00725.66
8.1.240.0130.00325.66
8.1.230.0120.00425.66
8.1.220.0100.00325.66
8.1.210.0100.00725.66
8.1.200.0090.01225.66
8.1.190.0040.01825.66
8.1.180.0170.00725.66
8.1.170.0000.02225.66
8.1.160.0100.01025.66
8.1.150.0000.01525.66
8.1.140.0090.00625.66
8.1.130.0000.01425.66
8.1.120.0130.00325.66
8.1.110.0080.00825.66
8.1.100.0040.01225.66
8.1.90.0120.00325.66
8.1.80.0110.00325.66
8.1.70.0040.01125.66
8.1.60.0080.00825.66
8.1.50.0090.00925.66
8.1.40.0070.01125.66
8.1.30.0090.00925.66
8.1.20.0110.00425.66
8.1.10.0150.00025.66
8.1.00.0140.00325.66

preferences:
87.31 ms | 403 KiB | 5 Q