3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str1= '082307'; echo substr(chunk_split($str1, 2, ':')); ?> - See more at: http://www.w3resource.com/php-exercises/php-string-exercises.php#sthash.bzfnf2JW.dpuf

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.0170.00018.13
8.3.50.0130.00821.89
8.3.40.0040.01118.71
8.3.30.0120.00318.92
8.3.20.0050.00320.18
8.3.10.0050.00320.65
8.3.00.0090.00019.80
8.2.180.0150.00318.29
8.2.170.0070.00722.96
8.2.160.0150.00420.35
8.2.150.0070.00024.18
8.2.140.0000.00824.66
8.2.130.0000.00826.16
8.2.120.0070.00022.09
8.2.110.0030.00620.22
8.2.100.0040.00818.16
8.2.90.0000.00819.22
8.2.80.0030.00617.97
8.2.70.0080.00017.50
8.2.60.0040.00417.90
8.2.50.0060.00318.07
8.2.40.0040.00418.16
8.2.30.0000.01019.20
8.2.20.0000.00717.65
8.2.10.0080.00018.05
8.2.00.0000.00917.76
8.1.280.0080.00825.92
8.1.270.0080.00021.88
8.1.260.0040.00426.35
8.1.250.0120.00328.09
8.1.240.0030.00624.02
8.1.230.0000.01118.88
8.1.220.0000.00817.74
8.1.210.0030.00518.77
8.1.200.0100.00317.25
8.1.190.0000.00817.13
8.1.180.0000.00818.10
8.1.170.0040.00418.27
8.1.160.0040.00422.00
8.1.150.0050.00218.77
8.1.140.0050.00217.44
8.1.130.0070.00017.69
8.1.120.0000.00717.28
8.1.110.0000.00717.44
8.1.100.0050.00217.38
8.1.90.0040.00317.45
8.1.80.0040.00417.39
8.1.70.0070.00017.23
8.1.60.0030.00517.54
8.1.50.0000.00817.52
8.1.40.0080.00017.46
8.1.30.0000.00817.51
8.1.20.0050.00317.51
8.1.10.0000.00717.44
8.1.00.0050.00517.43
8.0.300.0030.00618.77
8.0.290.0070.00016.75
8.0.280.0040.00418.29
8.0.270.0030.00317.20
8.0.260.0000.00617.11
8.0.250.0030.00316.84
8.0.240.0030.00316.89
8.0.230.0070.00016.97
8.0.220.0030.00316.76
8.0.210.0070.00016.92
8.0.200.0030.00316.90
8.0.190.0000.00816.98
8.0.180.0070.00016.92
8.0.170.0070.00016.90
8.0.160.0040.00416.82
8.0.150.0040.00416.84
8.0.140.0070.00016.82
8.0.130.0050.00013.24
8.0.120.0000.00816.82
8.0.110.0040.00416.93
8.0.100.0040.00416.99
8.0.90.0040.00416.67
8.0.80.0130.00416.87
8.0.70.0040.00316.91
8.0.60.0070.00016.83
8.0.50.0020.00516.86
8.0.30.0110.00817.07
8.0.20.0160.00717.40
8.0.10.0070.00016.83
8.0.00.0100.00716.83
7.4.330.0030.00315.06
7.4.320.0000.00616.44
7.4.300.0060.00016.34
7.4.290.0070.00016.38
7.4.280.0040.00416.42
7.4.270.0030.00316.44
7.4.260.0030.00316.27
7.4.250.0000.00716.48
7.4.240.0030.00316.43
7.4.230.0070.00016.62
7.4.220.0040.01516.35
7.4.210.0060.00616.34
7.4.200.0000.00716.22
7.4.160.0040.01316.47
7.4.150.0080.01617.40
7.4.140.0100.00717.86
7.4.130.0060.01216.48
7.4.120.0140.00716.50
7.4.110.0040.01516.50
7.4.100.0080.01516.39
7.4.90.0130.00416.46
7.4.80.0090.01516.52
7.4.70.0060.01016.48
7.4.60.0000.01716.52
7.4.50.0040.00416.37
7.4.40.0110.00816.47
7.4.30.0070.01616.65
7.4.00.0060.00914.80
7.3.330.0020.00213.01
7.3.320.0020.00212.95
7.3.310.0000.00716.18
7.3.300.0030.00316.16
7.3.290.0090.00616.21
7.3.280.0080.00816.14
7.3.270.0090.00917.40
7.3.260.0120.00616.37
7.3.250.0140.00616.34
7.3.240.0130.00616.23
7.3.230.0100.00716.39
7.3.210.0070.01016.19
7.3.200.0120.00919.39
7.3.190.0170.00416.14
7.3.180.0110.00716.47
7.3.170.0100.01316.27
7.3.160.0110.00516.27
7.2.330.0110.00616.56
7.2.320.0070.01016.42
7.2.310.0090.00916.48
7.2.300.0120.00616.22
7.2.290.0130.01016.50
7.2.00.0040.00819.03
7.1.100.0060.00617.73
7.1.70.0000.00816.86
7.1.60.0060.01619.32
7.1.50.0120.01616.86
7.1.00.0030.07722.31
7.0.200.0000.00716.86
7.0.140.0100.06721.90
7.0.60.0070.07020.02
7.0.50.0100.03317.81
7.0.40.0070.04320.38
7.0.30.0330.06320.13
7.0.20.0270.08320.22
7.0.10.0130.07720.33
7.0.00.0130.07020.02
5.6.280.0070.07021.09
5.6.210.0170.07020.52
5.6.200.0070.08318.22
5.6.190.0000.05020.39
5.6.180.0230.03720.77
5.6.170.0330.06020.49
5.6.160.0100.07720.54
5.6.150.0030.05318.27
5.6.140.0170.07018.14
5.6.130.0030.08018.12
5.6.120.0070.08721.14
5.6.110.0130.08321.13
5.6.100.0130.08321.03
5.6.90.0170.07320.87
5.6.80.0070.05720.40
5.5.350.0230.08020.37
5.5.340.0070.08017.94
5.5.330.0070.05020.23
5.5.320.0200.07020.28
5.5.310.0300.08020.27
5.5.300.0070.05317.91
5.5.290.0070.05317.90
5.5.280.0200.06720.88
5.5.270.0030.04020.75
5.5.260.0070.07020.86
5.5.250.0100.07720.60
5.5.240.0030.05320.15
5.4.450.0630.05719.45
5.4.440.0630.06319.63
5.4.430.0970.04319.31
5.4.420.1000.06319.60
5.4.410.1030.06719.00
5.4.400.0830.04319.00
5.4.390.0770.06718.95
5.4.380.1030.06718.74
5.4.370.0370.04718.72
5.4.360.0270.05318.52
5.4.350.0370.07018.70
5.4.340.0430.04718.56
5.4.320.0040.04212.45
5.4.310.0050.03712.45
5.4.300.0060.03512.45
5.4.290.0040.04012.45
5.4.280.0040.03612.35
5.4.270.0050.03612.34
5.4.260.0110.03312.34
5.4.250.0080.03412.35
5.4.240.0090.03212.34
5.4.230.0060.03712.34
5.4.220.0040.03812.34
5.4.210.0050.03812.34
5.4.200.0040.03912.34
5.4.190.0070.03912.33
5.4.180.0040.03712.34
5.4.170.0070.03412.34
5.4.160.0030.03912.34
5.4.150.0030.03912.34
5.4.140.0090.03312.02
5.4.130.0070.03312.01
5.4.120.0070.03711.96
5.4.110.0070.04111.96
5.4.100.0040.03811.96
5.4.90.0050.03711.96
5.4.80.0040.03711.96
5.4.70.0040.04511.96
5.4.60.0070.03611.96
5.4.50.0030.03811.96
5.4.40.0050.03511.95
5.4.30.0090.04211.95
5.4.20.0060.03511.95
5.4.10.0030.03911.95
5.4.00.0050.03811.44
5.3.290.0040.04012.80
5.3.280.0070.03812.71
5.3.270.0060.04012.72
5.3.260.0080.04112.72
5.3.250.0090.03312.72
5.3.240.0050.03812.71
5.3.230.0060.03712.71
5.3.220.0070.03512.68
5.3.210.0060.03812.68
5.3.200.0070.03412.68
5.3.190.0060.03512.68
5.3.180.0070.03412.67
5.3.170.0050.03712.67
5.3.160.0070.03512.68
5.3.150.0120.03712.67
5.3.140.0060.04112.66
5.3.130.0040.04112.66
5.3.120.0070.04212.66
5.3.110.0040.04012.65
5.3.100.0060.03812.12
5.3.90.0080.03312.09
5.3.80.0090.03712.07
5.3.70.0030.03812.07
5.3.60.0030.03912.06
5.3.50.0050.03612.00
5.3.40.0070.03512.00
5.3.30.0040.03511.94
5.3.20.0050.03911.72
5.3.10.0060.03311.69
5.3.00.0050.03511.67
5.2.170.0090.0259.18
5.2.160.0080.0299.18
5.2.150.0050.0299.18
5.2.140.0040.0479.17
5.2.130.0090.0329.14
5.2.120.0030.0299.13
5.2.110.0040.0299.14
5.2.100.0050.0289.13
5.2.90.0090.0339.13
5.2.80.0070.0309.13
5.2.70.0050.0309.13
5.2.60.0040.0309.09
5.2.50.0040.0389.06
5.2.40.0060.0269.03
5.2.30.0060.0349.00
5.2.20.0030.0308.99
5.2.10.0040.0288.92
5.2.00.0060.0328.77
5.1.60.0030.0248.06
5.1.50.0060.0298.06
5.1.40.0020.0258.04
5.1.30.0040.0258.39
5.1.20.0020.0288.41
5.1.10.0030.0278.14
5.1.00.0020.0278.13
5.0.50.0010.0226.61
5.0.40.0020.0206.47
5.0.30.0040.0306.28
5.0.20.0040.0186.25
5.0.10.0020.0206.23
5.0.00.0020.0306.22
4.4.90.0040.0194.78
4.4.80.0000.0214.76
4.4.70.0040.0184.76
4.4.60.0020.0264.75
4.4.50.0030.0204.77
4.4.40.0020.0254.71
4.4.30.0020.0164.75
4.4.20.0010.0174.84
4.4.10.0030.0214.84
4.4.00.0030.0354.76
4.3.110.0030.0154.67
4.3.100.0030.0184.67
4.3.90.0030.0144.63
4.3.80.0020.0244.59
4.3.70.0010.0154.63
4.3.60.0040.0134.62
4.3.50.0020.0164.63
4.3.40.0030.0234.54
4.3.30.0000.0183.28
4.3.20.0020.0153.26
4.3.10.0020.0153.22
4.3.00.0130.0237.58

preferences:
42.77 ms | 401 KiB | 5 Q