3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = '010069008517306731020020001319100421191004091395'; if (preg_match_all('/(01)(\d{14})|(310[12]|3202|1[135])(\d{6})|(21)(\d+)/', $input, $matches)) { $array = array_filter(array_combine($matches[1], $matches[2]) + array_combine($matches[3], $matches[4]) + array_combine($matches[5], $matches[6])); print_r($array); } else { echo "Invalid input!"; }

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.30.0080.00918.14
8.5.20.0090.00820.09
8.5.10.0080.01016.79
8.5.00.0140.00720.13
8.4.180.0130.01219.91
8.4.170.0160.00721.95
8.4.160.0170.00422.00
8.4.150.0070.00617.00
8.4.140.0110.01117.77
8.4.130.0090.01018.82
8.4.120.0110.00624.17
8.4.110.0100.00819.89
8.4.100.0150.00517.96
8.4.90.0100.00920.69
8.4.80.0120.00518.96
8.4.70.0050.00518.98
8.4.60.0100.01018.80
8.4.50.0330.00917.66
8.4.40.0300.00817.88
8.4.30.0250.00417.46
8.4.20.0140.00717.78
8.4.10.0170.00517.60
8.3.300.0100.01020.86
8.3.290.0120.00722.53
8.3.280.0120.01018.46
8.3.270.0120.00816.80
8.3.260.0060.01316.70
8.3.250.0130.00619.06
8.3.240.0100.00817.18
8.3.230.0150.00416.93
8.3.220.0060.00319.16
8.3.210.0110.00818.49
8.3.200.0150.00316.64
8.3.190.0160.00316.83
8.3.180.0180.00616.36
8.3.170.0160.00516.33
8.3.160.0170.00516.55
8.3.150.0170.00416.49
8.3.140.0160.00516.51
8.3.130.0140.00416.44
8.3.120.0170.00216.79
8.3.110.0140.00516.65
8.3.100.0170.00316.60
8.3.90.0170.00416.52
8.3.80.0160.00516.56
8.3.70.0170.00416.24
8.3.60.0190.00316.58
8.3.50.0180.00616.46
8.3.40.0160.00417.45
8.3.30.0120.00417.48
8.3.20.0130.00317.69
8.3.10.0130.00617.52
8.3.00.0110.00517.66
8.2.300.0080.01220.25
8.2.290.0060.00317.09
8.2.280.0120.00517.01
8.2.270.0110.00616.51
8.2.260.0140.00516.36
8.2.250.0140.00416.62
8.2.240.0130.00516.45
8.2.230.0150.00316.36
8.2.220.0160.00516.72
8.2.210.0160.00316.62
8.2.200.0130.00416.91
8.2.190.0130.00416.90
8.2.180.0120.00516.59
8.2.170.0190.00217.58
8.2.160.0160.00217.80
8.2.150.0170.00417.84
8.2.140.0160.00317.41
8.2.130.0140.00617.61
8.2.120.0150.00317.59
8.2.110.0140.00617.83
8.2.100.0160.00517.76
8.2.90.0220.00217.54
8.2.80.0160.00717.52
8.2.70.0130.00717.65
8.2.60.0130.00517.77
8.2.50.0170.00317.50
8.2.40.0120.00617.71
8.2.30.0130.00617.63
8.2.20.0090.00817.77
8.2.10.0170.00217.59
8.2.00.0110.00717.57
8.1.340.0100.00920.23

preferences:
56.82 ms | 848 KiB | 5 Q