3v4l.org

run code in 300+ PHP versions simultaneously
<?php $t1 = '00:08:10.38474'; if (preg_match('/^(\d{2}):(\d{2}):(\d{2})\.(\d{5})$/', $t1, $matches)) { [, $hours, $minutes, $seconds, $milliseconds] = $matches; var_dump($hours, $minutes, $seconds, $milliseconds); // "00", "08", "10", "38474" }

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.4.10.0040.00421.31
8.3.140.0130.00317.12
8.3.130.0060.00318.17
8.3.120.0030.00620.74
8.3.110.0030.01718.32
8.3.100.0160.00316.91
8.3.90.0100.00026.77
8.3.80.0030.00616.63
8.3.70.0110.01118.43
8.3.60.0090.00616.63
8.3.50.0100.00724.43
8.3.40.0160.00318.88
8.3.30.0070.00718.88
8.3.20.0030.00524.18
8.3.10.0080.00024.66
8.3.00.0090.00026.16
8.2.260.0140.00018.83
8.2.250.0050.00318.91
8.2.240.0030.00617.13
8.2.230.0130.00620.94
8.2.220.0090.00924.06
8.2.210.0060.00826.77
8.2.200.0030.00616.63
8.2.190.0140.00416.63
8.2.180.0120.00625.92
8.2.170.0120.00618.91
8.2.160.0100.00322.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0050.00321.19
8.2.110.0110.00720.53
8.2.100.0110.00018.03
8.2.90.0000.00917.88
8.2.80.0000.00918.85
8.2.70.0040.00417.93
8.2.60.0030.00518.22
8.2.50.0000.00918.10
8.2.40.0030.00619.30
8.2.30.0000.00919.28
8.2.20.0070.00017.99
8.2.10.0000.00719.27
8.2.00.0000.00719.17
8.1.310.0060.00916.82
8.1.300.0090.00018.38
8.1.290.0050.00518.88
8.1.280.0110.00425.92
8.1.270.0080.00023.99
8.1.260.0070.00726.35
8.1.250.0050.00328.09
8.1.240.0030.00619.41
8.1.230.0040.00819.01
8.1.220.0050.00317.80
8.1.210.0040.00418.77
8.1.200.0030.00617.23
8.1.190.0080.00417.09
8.1.180.0030.00518.10
8.1.170.0070.00418.48
8.1.160.0040.00419.03
8.1.150.0040.00418.85
8.1.140.0040.00418.89
8.1.130.0000.00720.04
8.1.120.0040.00417.44
8.1.110.0070.00317.54
8.1.100.0040.00417.54
8.1.90.0050.00317.45
8.1.80.0100.00017.57
8.1.70.0030.00317.38
8.1.60.0030.00517.53
8.1.50.0030.00517.57
8.1.40.0040.00417.62
8.1.30.0040.00417.74
8.1.20.0060.00317.64
8.1.10.0030.00617.77
8.1.00.0040.00417.63
8.0.300.0040.00418.77
8.0.290.0060.00316.75
8.0.280.0030.00318.46
8.0.270.0000.00716.94
8.0.260.0040.00418.32
8.0.250.0020.00517.02
8.0.240.0030.00317.04
8.0.230.0050.00317.04
8.0.220.0040.00416.85
8.0.210.0000.00716.98
8.0.200.0040.00417.05
8.0.190.0000.00716.98
8.0.180.0040.00416.87
8.0.170.0000.00816.85
8.0.160.0020.00516.97
8.0.150.0030.00316.93
8.0.140.0000.00816.89
8.0.130.0000.00513.43
8.0.120.0040.00416.82
8.0.110.0000.00816.86
8.0.100.0000.00816.92
8.0.90.0040.00416.99
8.0.80.0140.00516.98
8.0.70.0000.00717.04
8.0.60.0000.00817.02
8.0.50.0000.00716.84
8.0.30.0140.00717.18
8.0.20.0090.01117.33
8.0.10.0000.00717.20
8.0.00.0140.00716.82
7.4.330.0000.00415.55
7.4.320.0020.00516.51
7.4.300.0000.00716.79
7.4.290.0080.00016.71
7.4.280.0080.00016.69
7.4.270.0000.00816.54
7.4.260.0030.00313.40
7.4.250.0030.00616.63
7.4.240.0040.00416.75
7.4.230.0050.00316.72
7.4.220.0020.00516.82
7.4.210.0070.00716.63
7.4.200.0000.00716.49
7.4.130.0130.00516.70
7.4.120.0150.00916.61
7.4.110.0060.01016.73
7.4.100.0130.00316.75
7.4.90.0120.00416.54
7.4.80.0070.01416.85
7.4.70.0090.01516.35
7.4.60.0140.00616.52
7.4.50.0070.01116.73
7.4.40.0060.01216.51
7.4.30.0160.00516.66
7.4.20.0060.01316.57
7.4.10.0060.01216.49
7.4.00.0110.01016.36
7.3.330.0030.00316.41
7.3.320.0000.00513.21
7.3.310.0030.00316.29
7.3.300.0000.00716.19
7.3.290.0110.00616.33
7.3.280.0030.01616.41
7.3.260.0080.01216.31
7.3.230.0110.00816.32
7.3.210.0090.00616.61
7.3.200.0130.00416.49
7.3.190.0070.01716.52
7.3.180.0110.00816.61
7.3.170.0130.01016.44
7.3.160.0120.00616.21
7.3.150.0130.01016.37
7.3.140.0090.00916.52
7.3.130.0090.00916.43
7.3.120.0090.01316.41
7.3.110.0100.01016.73
7.3.100.0110.00816.57
7.3.90.0080.01116.59
7.3.80.0120.00716.56
7.3.70.0160.01116.53
7.3.60.0120.01216.44
7.3.50.0130.00616.52
7.3.40.0050.01416.49
7.3.30.0160.00216.30
7.3.20.0160.00416.36
7.3.10.0170.00716.37
7.3.00.0040.01616.55
7.2.330.0140.00316.70
7.2.320.0060.01216.68
7.2.310.0060.01716.68
7.2.300.0070.01516.54
7.2.290.0210.00016.55
7.2.280.0060.01316.67
7.2.270.0130.01416.38
7.2.260.0090.00916.57
7.2.250.0100.01016.65
7.2.240.0100.00916.71
7.2.230.0150.01016.44
7.2.220.0110.01116.66
7.2.210.0060.02616.58
7.2.200.0090.01516.66
7.2.190.0150.01116.69
7.2.180.0110.01116.45
7.2.170.0040.01616.62
7.2.160.0090.01116.49
7.2.150.0000.01916.52
7.2.140.0320.00816.46
7.2.130.0170.00416.58
7.2.120.0080.01216.55
7.2.110.0140.00716.56
7.2.100.0140.01116.48
7.2.90.0140.00816.49
7.2.80.0170.00316.42
7.2.70.0100.01516.55
7.2.60.0140.00616.65
7.2.50.0100.01116.66
7.2.40.0150.00616.72
7.2.30.0140.00616.58
7.2.20.0140.01416.65
7.2.10.0160.00516.70
7.2.00.0070.01716.50

preferences:
62.44 ms | 403 KiB | 5 Q