3v4l.org

run code in 300+ PHP versions simultaneously
<?php $examples = [ 'Sep 04-08', 'Sep 29-Oct 01', ]; $result = []; foreach ($examples as $example) { var_export( explode('-', preg_replace('/^(\D{4})\d{2}-\K(?=\d)/', '$1', $example)) ); echo "\n"; }

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.60.0100.00718.43
8.3.50.0040.01420.14
8.3.40.0090.00619.92
8.3.30.0070.00718.79
8.3.20.0080.00024.18
8.3.10.0070.00024.66
8.3.00.0070.00026.16
8.2.180.0120.00325.92
8.2.170.0100.00322.96
8.2.160.0090.00622.96
8.2.150.0000.00825.66
8.2.140.0080.00024.66
8.2.130.0050.00326.16
8.2.120.0040.00426.16
8.2.110.0060.00320.23
8.2.100.0060.00618.03
8.2.90.0040.00418.16
8.2.80.0080.00322.43
8.2.70.0050.00317.63
8.2.60.0030.00617.75
8.2.50.0000.00917.63
8.2.40.0060.00318.05
8.2.30.0050.00218.15
8.2.20.0000.00719.32
8.2.10.0040.00417.99
8.2.00.0000.00719.16
8.1.280.0090.00625.92
8.1.270.0070.00024.66
8.1.260.0080.00026.35
8.1.250.0090.00028.09
8.1.240.0150.00320.66
8.1.230.0040.00720.97
8.1.220.0030.00517.78
8.1.210.0030.00618.77
8.1.200.0000.00817.47
8.1.190.0090.00017.35
8.1.180.0050.00318.10
8.1.170.0040.00417.62
8.1.160.0030.00318.95
8.1.150.0000.00718.85
8.1.140.0040.00417.46
8.1.130.0000.00719.04
8.1.120.0090.00017.62
8.1.110.0070.00017.60
8.1.100.0000.00717.61
8.1.90.0110.00417.56
8.1.80.0110.00417.61
8.1.70.0090.00617.63
8.1.60.0110.00817.63
8.1.50.0150.00417.64
8.1.40.0130.00217.50
8.1.30.0130.00017.75
8.1.20.0100.00317.75
8.1.10.0070.00717.70
8.1.00.0140.00017.56
8.0.300.0050.00219.97
8.0.290.0000.00916.88
8.0.280.0040.00418.38
8.0.270.0030.00317.07
8.0.260.0030.00318.37
8.0.250.0070.00017.08
8.0.240.0070.00017.07
8.0.230.0030.00317.14
8.0.220.0080.00416.96
8.0.210.0000.01316.83
8.0.200.0130.00017.05
8.0.190.0070.00517.12
8.0.180.0130.00016.92
8.0.170.0080.00417.07
8.0.160.0030.00816.99
8.0.150.0000.01017.00
8.0.140.0060.00317.01
8.0.130.0000.00716.94
8.0.120.0050.00217.09
8.0.110.0090.00217.01
8.0.100.0000.00716.93
8.0.90.0000.00716.98
8.0.80.0070.00016.99
8.0.70.0000.01216.96
8.0.60.0150.00016.91
8.0.50.0110.00416.97
8.0.30.0160.00416.93
8.0.20.0100.00517.05
8.0.10.0130.00317.07
7.4.330.0050.00016.80
7.4.320.0070.00016.83
7.4.300.0150.00416.82
7.4.290.0160.00316.68
7.4.280.0090.00916.69
7.4.270.0150.00316.72
7.4.260.0140.00616.68
7.4.250.0120.00616.70
7.4.240.0140.00516.71
7.4.230.0180.00016.69
7.4.220.0140.00516.85
7.4.210.0130.00316.70
7.4.200.0110.00416.59
7.4.190.0150.00016.74
7.4.180.0120.00416.85
7.4.160.0130.00316.79
7.4.150.0070.00716.52
7.4.140.0130.00016.59
7.4.130.0090.00516.64
7.4.120.0040.00716.59
7.4.110.0090.00516.71
7.4.100.0060.00816.78
7.4.90.0030.00916.56
7.4.80.0100.00416.61
7.4.70.0080.00416.68
7.4.60.0070.00416.63
7.4.50.0060.00616.61
7.4.40.0100.00316.68
7.4.30.0100.00316.60
7.4.20.0080.00416.61
7.4.10.0120.00316.65
7.4.00.0050.00916.62

preferences:
32.43 ms | 400 KiB | 5 Q