3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array('a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i'); $str = ltrim(strrev(chunk_split(implode(array_reverse($arr)), 3, ';')),';'); echo $str;

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.0070.01418.43
8.3.50.0120.00820.96
8.3.40.0110.00718.90
8.3.30.0070.00718.93
8.3.20.0070.00020.09
8.3.10.0080.00020.36
8.3.00.0080.00019.26
8.2.180.0150.00616.63
8.2.170.0110.00422.96
8.2.160.0030.01420.38
8.2.150.0080.00025.66
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0080.00020.62
8.2.110.0030.00622.11
8.2.100.0070.00420.52
8.2.90.0080.00019.07
8.2.80.0030.00617.97
8.2.70.0080.00017.63
8.2.60.0030.00617.91
8.2.50.0030.00618.07
8.2.40.0050.00318.16
8.2.30.0040.00419.12
8.2.20.0070.00017.79
8.2.10.0040.00418.16
8.2.00.0000.00817.79
8.1.280.0140.00425.92
8.1.270.0000.00823.69
8.1.260.0000.00926.35
8.1.250.0080.00028.09
8.1.240.0030.00621.97
8.1.230.0110.00019.09
8.1.220.0080.00017.78
8.1.210.0050.00318.77
8.1.200.0060.00317.22
8.1.190.0000.00917.23
8.1.180.0000.00718.10
8.1.170.0000.00818.32
8.1.160.0050.00221.88
8.1.150.0040.00418.73
8.1.140.0000.00717.43
8.1.130.0070.00017.80
8.1.120.0000.00717.44
8.1.110.0040.00417.38
8.1.100.0050.00317.39
8.1.90.0040.00417.38
8.1.80.0000.00717.32
8.1.70.0000.00717.31
8.1.60.0000.00817.53
8.1.50.0000.00817.35
8.1.40.0040.00417.32
8.1.30.0080.00017.51
8.1.20.0070.00017.60
8.1.10.0000.00817.45
8.1.00.0060.00317.45
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0070.00018.52
8.0.270.0070.00016.94
8.0.260.0080.00017.26
8.0.250.0030.00316.97
8.0.240.0000.00816.98
8.0.230.0000.00716.89
8.0.220.0030.00316.73
8.0.210.0030.00316.86
8.0.200.0000.00716.92
8.0.190.0050.00316.89
8.0.180.0040.00416.73
8.0.170.0030.00516.77
8.0.160.0050.00316.87
8.0.150.0030.00316.73
8.0.140.0050.00316.76
8.0.130.0030.00313.21
8.0.120.0000.00816.75
8.0.110.0040.00416.87
8.0.100.0040.00416.81
8.0.90.0070.00016.76
8.0.80.0110.00616.85
8.0.70.0070.00016.84
8.0.60.0040.00416.62
8.0.50.0000.00816.73
8.0.30.0080.01217.05
8.0.20.0080.01117.40
8.0.10.0000.00716.82
8.0.00.0070.01016.77
7.4.330.0020.00215.07
7.4.320.0000.00716.52
7.4.300.0030.00316.57
7.4.290.0000.00716.54
7.4.280.0040.00416.54
7.4.270.0030.00316.33
7.4.260.0030.00316.52
7.4.250.0050.00216.41
7.4.240.0060.00216.37
7.4.230.0070.00016.60
7.4.220.0070.01116.46
7.4.210.0120.00616.46
7.4.200.0000.00716.42
7.4.160.0110.00816.26
7.4.150.0140.00317.40
7.4.140.0120.00417.86
7.4.130.0130.00316.40
7.4.120.0080.00816.46
7.4.110.0140.00416.47
7.4.100.0030.01316.48
7.4.90.0100.00716.48
7.4.80.0070.01018.80
7.4.70.0090.01316.34
7.4.60.0110.00516.45
7.4.50.0000.00816.47
7.4.40.0070.01416.36
7.4.30.0070.01016.38
7.4.00.0020.01314.96
7.3.330.0030.00313.18
7.3.320.0030.00312.95
7.3.310.0030.00316.04
7.3.300.0070.00016.18
7.3.290.0040.01116.20
7.3.280.0130.00616.24
7.3.270.0130.00317.40
7.3.260.0090.01616.22
7.3.250.0080.00816.33
7.3.240.0120.00616.27
7.3.230.0000.01716.39
7.3.210.0090.01216.09
7.3.200.0210.00319.39
7.3.190.0120.00916.24
7.3.180.0000.01616.27
7.3.170.0130.00916.27
7.3.160.0100.00616.35
7.3.120.0110.00715.01
7.3.110.0070.01014.64
7.3.100.0000.01414.89
7.3.90.0060.00914.66
7.3.80.0060.00914.68
7.3.70.0030.01014.92
7.3.60.0000.01414.65
7.3.50.0000.01514.79
7.3.40.0130.00014.65
7.3.30.0060.00914.70
7.3.20.0040.01116.68
7.3.10.0050.01016.47
7.3.00.0080.00616.39
7.2.330.0070.01116.63
7.2.320.0070.01616.60
7.2.310.0070.01116.13
7.2.300.0130.00316.28
7.2.290.0060.01016.58
7.2.250.0060.01214.91
7.2.240.0030.01714.91
7.2.230.0060.00914.91
7.2.220.0060.00915.05
7.2.210.0070.01115.10
7.2.200.0060.00915.16
7.2.190.0090.00614.97
7.2.180.0040.01415.05
7.2.170.0060.00615.03
7.2.130.0040.01116.59
7.2.120.0030.01016.57
7.2.110.0030.00816.57
7.2.100.0110.00016.34
7.2.90.0060.01116.83
7.2.80.0140.00016.68
7.2.70.0080.00316.38
7.2.60.0050.00916.73
7.2.50.0030.00916.62
7.2.40.0000.01216.73
7.2.30.0030.01416.40
7.2.20.0100.00316.76
7.2.10.0040.01116.52
7.2.00.0040.01116.51
7.1.330.0000.01815.86
7.1.320.0040.01116.01
7.1.310.0070.00715.69
7.1.300.0110.00415.84
7.1.290.0070.01015.38
7.1.280.0070.00715.64
7.1.270.0030.00615.84
7.1.260.0060.00615.87
7.1.250.0030.00515.65
7.1.200.0000.01415.55
7.1.70.0000.00717.27
7.1.60.0090.01519.32
7.1.50.0120.00916.70
7.1.00.0000.08022.35
7.0.200.0090.00316.82
7.0.140.0030.06322.15
7.0.70.4600.04719.91
7.0.60.0030.08319.97
7.0.50.0070.07717.79
7.0.40.0100.04719.89
7.0.30.0600.04320.34
7.0.20.0330.07720.01
7.0.10.0370.07020.12
7.0.00.0030.09320.13
5.6.280.0000.07720.86
5.6.210.0170.07020.73
5.6.200.0130.03318.18
5.6.190.0100.08720.48
5.6.180.0100.07020.24
5.6.170.0400.04720.48
5.6.160.0100.08320.37
5.6.150.0070.07718.18
5.6.140.0100.03318.21
5.6.130.0070.08018.11
5.6.120.0170.07721.12
5.6.110.0030.07321.01
5.6.100.0030.04721.07
5.6.90.0170.07720.98
5.6.80.0070.08020.48
5.6.70.0330.07020.50
5.5.350.0030.08320.46
5.5.340.0100.03317.98
5.5.330.0070.08320.43
5.5.320.0030.08320.57
5.5.310.0400.06720.21
5.5.300.0200.07317.91
5.5.290.0170.07317.97
5.5.280.0030.08720.87
5.5.270.0070.07320.75
5.5.260.0070.08720.75
5.5.250.0100.07720.54
5.5.240.0130.04320.16
5.4.450.0770.04319.48
5.4.440.1030.06019.42
5.4.430.0970.05019.23
5.4.420.0800.07019.53
5.4.410.0970.05319.19
5.4.400.0730.05719.18
5.4.390.0700.05718.80
5.4.380.0300.07018.72
5.4.370.0230.05318.77
5.4.360.0200.05318.61
5.4.350.0470.05318.68
5.4.340.0300.05018.70
5.4.320.0040.03812.45
5.4.310.0050.03812.45
5.4.300.0050.03712.46
5.4.290.0050.03812.45
5.4.280.0040.03712.35
5.4.270.0080.03612.35
5.4.260.0070.03612.35
5.4.250.0040.03912.35
5.4.240.0070.03412.35
5.4.230.0050.03812.34
5.4.220.0060.03512.34
5.4.210.0090.03112.34
5.4.200.0090.03412.34
5.4.190.0080.03912.34
5.4.180.0040.04012.34
5.4.170.0070.03912.35
5.4.160.0070.03712.34
5.4.150.0070.03812.34
5.4.140.0080.03612.02
5.4.130.0050.04112.02
5.4.120.0040.03711.97
5.4.110.0060.03611.97
5.4.100.0120.03711.96
5.4.90.0080.04811.97
5.4.80.0050.03911.97
5.4.70.0070.03311.96
5.4.60.0040.03711.96
5.4.50.0080.03211.96
5.4.40.0060.03311.95
5.4.30.0050.03611.95
5.4.20.0090.03211.95
5.4.10.0030.03811.95
5.4.00.0090.04811.43
5.3.290.0110.04312.80
5.3.280.0070.03812.70
5.3.270.0130.05812.72
5.3.260.0080.05212.71
5.3.250.0050.04612.72
5.3.240.0040.03912.72
5.3.230.0080.04312.71
5.3.220.0060.03812.68
5.3.210.0060.03912.68
5.3.200.0060.03712.68
5.3.190.0060.03812.68
5.3.180.0060.03712.67
5.3.170.0050.03912.67
5.3.160.0100.05012.68
5.3.150.0150.04812.67
5.3.140.0040.04312.66
5.3.130.0080.03712.66
5.3.120.0100.03612.66
5.3.110.0080.03812.65
5.3.100.0070.03712.11
5.3.90.0060.03512.08
5.3.80.0100.04112.07
5.3.70.0060.03512.08
5.3.60.0060.03512.06
5.3.50.0040.03712.00
5.3.40.0040.03812.00
5.3.30.0010.03911.95
5.3.20.0060.03811.72
5.3.10.0080.03211.69
5.3.00.0090.03211.68
5.2.170.0040.0309.18
5.2.160.0030.0299.18
5.2.150.0060.0299.18
5.2.140.0040.0309.17
5.2.130.0120.0269.14
5.2.120.0020.0319.14
5.2.110.0040.0309.14
5.2.100.0030.0299.14
5.2.90.0050.0299.14
5.2.80.0040.0319.13
5.2.70.0040.0309.14
5.2.60.0050.0339.09
5.2.50.0040.0329.05
5.2.40.0040.0319.03
5.2.30.0050.0319.01
5.2.20.0030.0349.00
5.2.10.0100.0328.92
5.2.00.0050.0298.78
5.1.60.0030.0258.07
5.1.50.0040.0248.06
5.1.40.0060.0228.04
5.1.30.0030.0288.39
5.1.20.0060.0248.41
5.1.10.0080.0278.14
5.1.00.0030.0268.14
5.0.50.0040.0206.62
5.0.40.0030.0206.47
5.0.30.0070.0376.28
5.0.20.0020.0216.26
5.0.10.0040.0196.23
5.0.00.0030.0316.23
4.4.90.0010.0174.78
4.4.80.0030.0154.75
4.4.70.0030.0164.75
4.4.60.0020.0174.76
4.4.50.0010.0174.77
4.4.40.0020.0294.70
4.4.30.0050.0164.76
4.4.20.0020.0164.85
4.4.10.0030.0164.85
4.4.00.0020.0254.76
4.3.110.0040.0204.67
4.3.100.0030.0144.66
4.3.90.0020.0154.63
4.3.80.0020.0254.59
4.3.70.0040.0134.63
4.3.60.0020.0154.63
4.3.50.0030.0154.63
4.3.40.0040.0224.53
4.3.30.0010.0173.29
4.3.20.0010.0173.26
4.3.10.0030.0153.21
4.3.00.0070.02016.39

preferences:
48.85 ms | 401 KiB | 5 Q