3v4l.org

run code in 300+ PHP versions simultaneously
<?php function fromString($intervalString) { list($days, $hours, $minutes) = explode(':', $intervalString) var_dump($days, $hours, $minutes); } fromString('3:30'); fromString('0:55'); fromString('3:30:00');

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)
5.4.350.0070.03312.03
5.4.340.0050.03512.02
5.4.320.0060.03612.52
5.4.310.0090.04212.52
5.4.300.0090.04012.52
5.4.290.0050.04012.52
5.4.280.0060.04212.41
5.4.270.0080.05312.41
5.4.260.0110.05312.41
5.4.250.0070.04112.41
5.4.240.0060.03812.41
5.4.230.0090.04112.40
5.4.220.0100.04112.40
5.4.210.0140.06512.40
5.4.200.0070.04112.40
5.4.190.0100.04012.40
5.4.180.0150.07712.40
5.4.170.0130.06812.41
5.4.160.0090.04212.40
5.4.150.0060.04112.39
5.4.140.0050.04812.09
5.4.130.0070.04812.07
5.4.120.0270.09412.03
5.4.110.0090.03412.04
5.4.100.0050.03512.03
5.4.90.0080.04012.03
5.4.80.0040.04512.03
5.4.70.0060.04612.02
5.4.60.0080.07012.03
5.4.50.0120.05612.02
5.4.40.0150.06312.01
5.4.30.0130.05212.01
5.4.20.0170.04712.00
5.4.10.0130.05412.01
5.4.00.0180.06011.50
5.3.290.0150.05312.80
5.3.280.0060.04512.71
5.3.270.0080.04112.73
5.3.260.0090.03812.72
5.3.250.0130.03712.72
5.3.240.0080.04312.72
5.3.230.0090.03712.71
5.3.220.0060.04112.68
5.3.210.0060.04312.68
5.3.200.0100.04812.68
5.3.190.0080.05112.68
5.3.180.0060.04812.67
5.3.170.0100.04512.67
5.3.160.0080.04212.67
5.3.150.0080.05612.67
5.3.140.0120.05612.66
5.3.130.0100.04712.66
5.3.120.0080.05512.66
5.3.110.0040.04612.66
5.3.100.0050.03912.13
5.3.90.0050.03812.11
5.3.80.0120.03112.10
5.3.70.0100.04612.09
5.3.60.0090.05012.09
5.3.50.0120.03812.02
5.3.40.0080.04812.03
5.3.30.0120.06011.98
5.3.20.0060.04211.76
5.3.10.0050.04011.73
5.3.00.0070.04611.72
5.2.170.0110.0559.22
5.2.160.0050.0419.22
5.2.150.0060.0359.22
5.2.140.0030.0409.21
5.2.130.0060.0409.18
5.2.120.0050.0329.18
5.2.110.0060.0309.18
5.2.100.0050.0339.18
5.2.90.0030.0419.18
5.2.80.0060.0309.18
5.2.70.0030.0349.17
5.2.60.0070.0329.13
5.2.50.0060.0349.10
5.2.40.0100.0339.08
5.2.30.0060.0309.05
5.2.20.0040.0309.04
5.2.10.0040.0328.95
5.2.00.0050.0418.80
5.1.60.0040.0358.09
5.1.50.0040.0348.09
5.1.40.0070.0278.07
5.1.30.0090.0368.43
5.1.20.0060.0378.43
5.1.10.0020.0298.16
5.1.00.0070.0258.16
5.0.50.0020.0236.64
5.0.40.0040.0226.50
5.0.30.0030.0336.32
5.0.20.0010.0236.29
5.0.10.0030.0216.26
5.0.00.0040.0326.25
4.4.90.0040.0214.78
4.4.80.0020.0224.75
4.4.70.0020.0204.75
4.4.60.0020.0184.75
4.4.50.0030.0154.77
4.4.40.0030.0264.70
4.4.30.0030.0174.76
4.4.20.0010.0184.84
4.4.10.0030.0154.85
4.4.00.0020.0284.76
4.3.110.0040.0164.67
4.3.100.0040.0194.67
4.3.90.0030.0164.63
4.3.80.0020.0254.59
4.3.70.0060.0124.63
4.3.60.0020.0194.63
4.3.50.0050.0134.63
4.3.40.0060.0264.54
4.3.30.0040.0143.30
4.3.20.0020.0213.28
4.3.10.0000.0193.24
4.3.00.0030.0236.55

preferences:
145.56 ms | 1386 KiB | 7 Q