3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = 'test https://example.com//ita https://example.com lics// test // another // one'; var_export( preg_split( '~(?1)(?://\s*((?:https?://|.)*?)\s*//)?~', $text, -1, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY ) );

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.0090.00920.38
8.5.10.0140.00716.67
8.5.00.0090.01320.09
8.4.170.0120.01120.41
8.4.160.0130.01221.70
8.4.150.0020.00014.05
8.4.140.0110.01117.88
8.4.130.0060.00417.73
8.4.120.0100.01024.16
8.4.110.0100.01122.25
8.4.100.0110.01018.79
8.4.90.0170.00318.72
8.4.80.0030.00520.45
8.4.70.0080.00818.15
8.4.60.0100.01118.94
8.4.50.0120.01018.66
8.4.40.0170.00317.70
8.4.30.0140.00318.71
8.4.20.0100.01018.09
8.4.10.0100.01019.46
8.3.290.0150.00621.01
8.3.280.0090.01218.38
8.3.270.0100.00916.68
8.3.260.0080.01216.68
8.3.250.0110.00818.70
8.3.240.0150.00417.32
8.3.230.0110.00819.01
8.3.220.0060.00218.99
8.3.210.0060.00116.65
8.3.200.0030.00616.81
8.3.190.0050.00416.93
8.3.180.0100.00816.96
8.3.170.0030.00620.42
8.3.160.0060.00316.96
8.3.150.0040.01518.80
8.3.140.0140.00018.93
8.3.130.0040.00418.34
8.3.120.0060.00318.81
8.3.110.0050.00520.94
8.3.100.0060.00324.06
8.3.90.0070.00326.77
8.3.80.0090.00317.97
8.3.70.0110.00416.88
8.3.60.0060.00918.51
8.3.50.0110.00716.91
8.3.40.0100.00321.82
8.3.30.0030.01022.10
8.3.20.0160.00625.66
8.3.10.0130.00725.66
8.3.00.0030.01625.66
8.2.300.0110.00922.07
8.2.290.0050.00520.24
8.2.280.0090.01018.46
8.2.270.0040.01118.83
8.2.260.0000.00816.81
8.2.250.0080.00816.68
8.2.240.0060.00319.10
8.2.230.0030.00622.58
8.2.220.0040.00837.54
8.2.210.0040.00426.77
8.2.200.0070.00718.41
8.2.190.0040.01120.54
8.2.180.0120.00316.63
8.2.170.0080.00818.91
8.2.160.0080.00622.96
8.2.150.0150.00325.66
8.2.140.0070.01325.66
8.2.130.0160.00325.66
8.2.120.0070.01425.66
8.2.110.0190.00025.66
8.2.100.0120.00925.66
8.2.90.0180.00425.66
8.2.80.0120.00625.66
8.2.70.0030.01725.66
8.2.60.0130.00625.66
8.2.50.0100.01025.66
8.2.40.0040.01525.66
8.2.30.0160.00325.66
8.2.20.0100.01325.66
8.2.10.0210.00025.66
8.2.00.0130.00725.66
8.1.340.0080.01317.41
8.1.330.0100.00821.89
8.1.320.0110.00416.26
8.1.310.0090.00618.62
8.1.300.0060.00319.89
8.1.290.0040.00730.84
8.1.280.0060.01525.92
8.1.270.0000.01525.66
8.1.260.0180.00325.66
8.1.250.0100.01025.66
8.1.240.0090.00625.66
8.1.230.0000.01525.66
8.1.220.0150.00025.66
8.1.210.0090.00925.66
8.1.200.0030.01425.66
8.1.190.0080.00825.66
8.1.180.0090.00925.66
8.1.170.0100.00725.66
8.1.160.0090.00925.66
8.1.150.0000.01525.66
8.1.140.0150.00025.66
8.1.130.0040.01125.66
8.1.120.0090.00625.66
8.1.110.0080.00825.66
8.1.100.0130.00325.66
8.1.90.0120.00325.66
8.1.80.0040.01425.66
8.1.70.0110.00425.66
8.1.60.0060.00925.66
8.1.50.0130.00625.66
8.1.40.0170.00325.66
8.1.30.0070.00725.66
8.1.20.0090.00625.66
8.1.10.0000.01425.66
8.1.00.0070.01025.66

preferences:
81.28 ms | 403 KiB | 5 Q