3v4l.org

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

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.0110.00719.98
8.5.10.0110.00716.55
8.5.00.0140.00820.18
8.4.170.0130.01020.55
8.4.160.0150.00723.93
8.4.150.0020.00014.05
8.4.140.0100.01217.77
8.4.130.0100.00918.79
8.4.120.0080.01324.17
8.4.110.0070.00220.84
8.4.100.0110.01018.01
8.4.90.0130.00817.77
8.4.80.0040.00417.87
8.4.70.0060.00319.77
8.4.60.0140.00919.70
8.4.50.0040.00520.48
8.4.40.0110.01117.80
8.4.30.0100.00720.36
8.4.20.0030.01718.20
8.4.10.0060.00319.61
8.3.290.0150.00520.81
8.3.280.0160.00318.68
8.3.270.0140.00616.57
8.3.260.0150.00516.60
8.3.250.0060.00218.92
8.3.240.0150.00617.10
8.3.230.0100.01016.63
8.3.220.0060.00316.48
8.3.210.0110.00716.73
8.3.200.0090.01119.09
8.3.190.0120.00617.16
8.3.180.0070.01216.86
8.3.170.0130.00720.84
8.3.160.0140.00716.77
8.3.150.0130.00616.78
8.3.140.0030.00517.05
8.3.130.0120.00016.34
8.3.120.0060.00320.48
8.3.110.0080.00020.94
8.3.100.0050.00324.06
8.3.90.0090.00626.77
8.3.80.0000.00918.55
8.3.70.0040.01516.50
8.3.60.0070.00718.46
8.3.50.0140.00318.19
8.3.40.0100.01022.08
8.3.30.0100.00720.30
8.3.20.0040.01525.66
8.3.10.0130.00625.66
8.3.00.0030.01725.66
8.2.300.0130.00822.11
8.2.290.0110.00820.76
8.2.280.0110.00916.75
8.2.270.0120.00617.11
8.2.260.0000.01816.63
8.2.250.0150.00616.83
8.2.240.0060.00317.53
8.2.230.0060.00322.58
8.2.220.0040.00437.54
8.2.210.0080.00826.77
8.2.200.0090.00018.54
8.2.190.0000.01516.63
8.2.180.0140.00417.00
8.2.170.0110.00718.91
8.2.160.0140.00022.96
8.2.150.0130.00725.66
8.2.140.0040.01125.66
8.2.130.0100.01025.66
8.2.120.0140.00725.66
8.2.110.0040.01125.66
8.2.100.0150.00625.66
8.2.90.0130.00325.66
8.2.80.0030.01225.66
8.2.70.0100.00725.66
8.2.60.0170.00325.66
8.2.50.0140.00325.66
8.2.40.0030.01325.66
8.2.30.0140.00725.66
8.2.20.0070.01025.66
8.2.10.0100.01025.66
8.2.00.0070.00725.66
8.1.340.0110.00821.63
8.1.330.0110.00821.98
8.1.320.0110.00416.48
8.1.310.0040.00416.63
8.1.300.0030.00618.42
8.1.290.0000.00930.84
8.1.280.0110.00325.92
8.1.270.0100.00325.66
8.1.260.0070.01025.66
8.1.250.0130.00325.66
8.1.240.0110.00425.66
8.1.230.0170.00025.66
8.1.220.0120.00325.66
8.1.210.0120.00325.66
8.1.200.0060.00925.66
8.1.190.0120.00325.66
8.1.180.0080.00825.66
8.1.170.0120.00625.66
8.1.160.0000.01525.66
8.1.150.0090.00625.66
8.1.140.0160.00025.66
8.1.130.0100.00625.66
8.1.120.0100.00625.66
8.1.110.0090.00925.66
8.1.100.0100.00725.66
8.1.90.0160.00025.66
8.1.80.0100.00625.66
8.1.70.0070.01325.66
8.1.60.0110.01125.66
8.1.50.0120.00925.66
8.1.40.0040.01225.66
8.1.30.0120.00325.66
8.1.20.0100.01025.66
8.1.10.0100.00725.66
8.1.00.0040.01525.66

preferences:
63.01 ms | 403 KiB | 5 Q