3v4l.org

run code in 300+ PHP versions simultaneously
<?php $list = [ '10-20', '12-14', '-5-10', '-10--2' ]; foreach ($list as $item) { list($first, $second) = preg_split('/(?<=\d)-/', $item); echo "\$first = $first, \$second = $second\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.0120.00618.56
8.3.50.0100.00517.58
8.3.40.0000.01518.79
8.3.30.0150.00018.82
8.3.20.0040.00421.95
8.3.10.0040.00421.73
8.3.00.0050.00321.73
8.2.180.0070.01116.50
8.2.170.0100.00622.96
8.2.160.0100.00722.21
8.2.150.0060.00324.18
8.2.140.0090.00024.66
8.2.130.0040.00426.16
8.2.120.0080.00020.88
8.2.110.0060.00321.24
8.2.100.0060.00617.84
8.2.90.0000.00818.28
8.2.80.0050.00317.97
8.2.70.0080.00017.88
8.2.60.0050.00317.80
8.2.50.0000.00818.07
8.2.40.0050.00318.29
8.2.30.0050.00318.18
8.2.20.0040.00418.19
8.2.10.0000.00719.39
8.2.00.0030.00618.02
8.1.280.0090.00625.92
8.1.270.0090.00018.82
8.1.260.0000.00826.35
8.1.250.0000.00728.09
8.1.240.0120.00022.07
8.1.230.0110.00021.04
8.1.220.0080.00017.76
8.1.210.0030.00618.77
8.1.200.0060.00317.50
8.1.190.0050.00517.35
8.1.180.0000.00818.10
8.1.170.0040.00418.78
8.1.160.0070.00018.84
8.1.150.0080.00018.91
8.1.140.0050.00218.91
8.1.130.0000.00720.32
8.1.120.0040.00417.50
8.1.110.0070.00017.63
8.1.100.0040.00417.54
8.1.90.0000.01017.61
8.1.80.0000.00817.48
8.1.70.0070.00017.66
8.1.60.0000.00817.69
8.1.50.0040.00417.64
8.1.40.0060.00317.67
8.1.30.0050.00317.72
8.1.20.0040.00417.76
8.1.10.0030.00617.70
8.1.00.0000.00717.63
8.0.300.0000.00719.73
8.0.290.0000.00916.75
8.0.280.0000.00718.46
8.0.270.0000.00716.98
8.0.260.0000.00718.33
8.0.250.0070.00016.99
8.0.240.0070.00017.07
8.0.230.0000.00717.14
8.0.220.0000.00717.04
8.0.210.0000.00717.07
8.0.200.0040.00417.13
8.0.190.0050.00317.06
8.0.180.0040.00417.06
8.0.170.0090.00017.04
8.0.160.0030.00517.02
8.0.150.0070.00016.86
8.0.140.0030.00317.00
8.0.130.0030.00313.54
8.0.120.0040.00416.96
8.0.110.0000.00717.11
8.0.100.0000.00717.02
8.0.90.0000.00716.89
8.0.80.0070.00716.91
8.0.70.0040.00416.97
8.0.60.0000.00817.02
8.0.50.0000.00716.95
8.0.30.0120.00316.91
8.0.20.0130.00717.39
8.0.10.0000.00717.06
8.0.00.0110.00817.00
7.4.330.0000.00516.66
7.4.320.0030.00316.80
7.4.300.0030.00316.72
7.4.290.0040.00416.71
7.4.280.0000.00816.68
7.4.270.0000.00716.66
7.4.260.0040.00416.74
7.4.250.0070.00016.70
7.4.240.0000.00716.68
7.4.230.0030.00316.69
7.4.220.0080.00016.53
7.4.210.0100.00616.85
7.4.200.0030.00316.84
7.4.160.0130.00816.66
7.4.140.0070.01017.86
7.4.130.0110.00616.69
7.4.120.0070.01116.66
7.4.110.0110.00716.98
7.4.100.0150.00316.71
7.4.90.0130.00316.77
7.4.80.0130.00719.39
7.4.70.0080.01116.60
7.4.60.0060.01016.41
7.4.50.0000.01416.47
7.4.40.0170.00016.64
7.4.00.0070.00915.16
7.3.330.0000.00513.18
7.3.320.0050.00013.23
7.3.310.0040.00416.62
7.3.300.0000.00716.50
7.3.290.0030.00516.44
7.3.280.0080.00616.51
7.3.260.0130.00816.63
7.3.240.0140.00616.67
7.3.230.0100.00716.71
7.3.210.0070.01016.46
7.3.200.0070.01616.76
7.3.190.0030.01716.51
7.3.180.0030.01416.52
7.3.170.0000.01716.81
7.3.160.0120.00316.70
7.3.120.0110.00614.99
7.3.110.0040.01214.90
7.3.100.0020.01315.13
7.3.90.0060.00715.04
7.3.80.0050.00815.07
7.3.70.0060.00714.89
7.3.60.0060.00714.90
7.3.50.0080.00614.99
7.3.40.0030.00915.00
7.3.30.0050.00715.04
7.3.20.0110.00316.74
7.3.10.0060.00816.87
7.3.00.0020.01116.69
7.2.330.0170.00016.75
7.2.320.0040.01216.84
7.2.310.0120.00416.73
7.2.300.0070.01016.81
7.2.290.0170.00716.80
7.2.250.0040.01415.16
7.2.240.0050.01515.14
7.2.230.0060.00715.38
7.2.220.0060.00615.08
7.2.210.0040.01015.29
7.2.200.0060.00615.17
7.2.190.0120.00315.23
7.2.180.0030.00814.97
7.2.170.0030.01115.17
7.2.160.0090.00315.33
7.2.150.0030.00916.91
7.2.140.0080.00817.13
7.2.130.0000.01117.11
7.2.120.0040.00817.04
7.2.110.0030.00817.20
7.2.100.0030.00916.89
7.2.90.0110.00017.23
7.2.80.0100.00317.14
7.2.70.0060.01017.12
7.2.60.0080.00817.18
7.2.50.0110.00017.13
7.2.40.0060.00617.23
7.2.30.0030.00817.00
7.2.20.0070.00416.98
7.2.10.0120.00916.88
7.2.00.0090.00617.05
7.1.330.0070.00516.03
7.1.320.0080.00816.03
7.1.310.0060.00916.01
7.1.300.0040.01015.92
7.1.290.0040.00915.93
7.1.280.0050.00615.94
7.1.270.0040.01015.91
7.1.260.0050.01015.84
7.1.250.0070.00315.82

preferences:
62.49 ms | 401 KiB | 5 Q