3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array('a', 'b', 'c', 'd', 'e', 'f'); //$str = implode(array_walk(array_reverse($arr), function($v,$k){if($k%3==0)$v.=';';})); //print_r(array_map(function($v){if($k%3==0)$v.=';';}), array_reverse($arr)); $str = 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.0110.00418.11
8.3.50.0100.00821.99
8.3.40.0140.00418.80
8.3.30.0070.00719.04
8.3.20.0000.00720.20
8.3.10.0040.00420.36
8.3.00.0080.00019.26
8.2.180.0140.00318.41
8.2.170.0170.00322.96
8.2.160.0030.01022.11
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0070.00022.24
8.2.110.0030.00622.23
8.2.100.0060.00617.55
8.2.90.0040.00419.05
8.2.80.0000.00817.97
8.2.70.0050.00517.63
8.2.60.0000.00717.93
8.2.50.0040.00418.07
8.2.40.0070.00018.21
8.2.30.0030.00519.24
8.2.20.0040.00417.60
8.2.10.0070.00018.00
8.2.00.0080.00017.70
8.1.280.0090.00625.92
8.1.270.0060.00322.01
8.1.260.0000.00826.35
8.1.250.0070.00028.09
8.1.240.0060.00323.64
8.1.230.0060.00619.01
8.1.220.0040.00417.79
8.1.210.0050.00318.77
8.1.200.0060.00617.22
8.1.190.0050.00317.23
8.1.180.0030.00518.10
8.1.170.0060.00318.40
8.1.160.0070.00021.95
8.1.150.0040.00418.83
8.1.140.0000.00817.39
8.1.130.0030.00317.74
8.1.120.0050.00217.40
8.1.110.0000.00717.39
8.1.100.0070.00017.29
8.1.90.0040.00417.47
8.1.80.0070.00017.29
8.1.70.0030.00317.26
8.1.60.0050.00317.55
8.1.50.0030.00617.50
8.1.40.0040.00417.47
8.1.30.0000.00817.56
8.1.20.0000.00817.46
8.1.10.0030.00517.51
8.1.00.0030.00617.53
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0000.00718.45
8.0.270.0030.00517.18
8.0.260.0060.00017.34
8.0.250.0040.00417.00
8.0.240.0040.00416.97
8.0.230.0030.00316.86
8.0.220.0000.00716.84
8.0.210.0060.00316.82
8.0.200.0040.00416.94
8.0.190.0000.00716.83
8.0.180.0070.00016.76
8.0.170.0050.00316.77
8.0.160.0070.00016.78
8.0.150.0080.00016.76
8.0.140.0000.00716.63
8.0.130.0040.00413.28
8.0.120.0080.00016.69
8.0.110.0050.00216.82
8.0.100.0000.00716.64
8.0.90.0040.00416.90
8.0.80.0060.01216.78
8.0.70.0080.00016.71
8.0.60.0030.00516.88
8.0.50.0040.00416.65
8.0.30.0100.00817.06
8.0.20.0120.00617.40
8.0.10.0030.00416.98
8.0.00.0050.01316.67
7.4.330.0030.00315.00
7.4.320.0030.00316.55
7.4.300.0000.00616.43
7.4.290.0030.00316.52
7.4.280.0000.00816.56
7.4.270.0030.00316.48
7.4.260.0030.00316.58
7.4.250.0000.00816.52
7.4.240.0020.00616.53
7.4.230.0000.00716.38
7.4.220.0090.00916.58
7.4.210.0060.00916.65
7.4.200.0030.00516.19
7.4.160.0130.00316.39
7.4.150.0110.00817.40
7.4.140.0120.00517.86
7.4.130.0090.00816.41
7.4.120.0080.00816.40
7.4.110.0100.01016.52
7.4.100.0090.00816.35
7.4.90.0090.00916.54
7.4.80.0130.00418.80
7.4.70.0060.01416.27
7.4.60.0080.01016.43
7.4.50.0030.00616.45
7.4.40.0100.01316.38
7.4.30.0140.00316.43
7.4.00.0010.01214.98
7.3.330.0000.00512.94
7.3.320.0000.00513.13
7.3.310.0030.00316.27
7.3.300.0030.00316.19
7.3.290.0080.00916.26
7.3.280.0070.01116.24
7.3.270.0120.00617.40
7.3.260.0130.01016.29
7.3.250.0080.00916.34
7.3.240.0130.01016.48
7.3.230.0120.00316.39
7.3.210.0130.00916.25
7.3.200.0150.01119.39
7.3.190.0060.01216.41
7.3.180.0130.00716.50
7.3.170.0040.01116.35
7.3.160.0100.00616.11
7.3.120.0070.00714.72
7.3.110.0070.01114.65
7.3.100.0070.01014.52
7.3.90.0070.00314.75
7.3.80.0070.00315.06
7.3.70.0100.00314.66
7.3.60.0040.00414.93
7.3.50.0000.01314.73
7.3.40.0000.01114.50
7.3.30.0090.00614.54
7.3.20.0030.00716.58
7.3.10.0060.00616.39
7.3.00.0040.01116.61
7.2.330.0070.01016.70
7.2.320.0170.00516.58
7.2.310.0100.01316.48
7.2.300.0130.00316.43
7.2.290.0110.00616.38
7.2.250.0040.00915.00
7.2.240.0040.01515.16
7.2.230.0040.00714.91
7.2.220.0060.00315.10
7.2.210.0070.00714.88
7.2.200.0040.01515.00
7.2.190.0000.01014.88
7.2.180.0100.00714.77
7.2.170.0100.00315.05
7.2.80.0000.00816.38
7.2.60.0090.00616.91
7.2.00.0040.00719.33
7.1.330.0070.01015.75
7.1.320.0090.00315.83
7.1.310.0090.00315.91
7.1.300.0030.00815.68
7.1.290.0040.01115.89
7.1.280.0030.00815.57
7.1.270.0040.00415.69
7.1.260.0000.01015.78
7.1.200.0060.00615.76
7.1.100.0060.00618.11
7.1.70.0030.00717.17
7.1.60.0060.01919.32
7.1.50.0130.00916.85
7.1.00.0100.07022.27
7.0.200.0060.00316.41
7.0.140.0070.07022.18
7.0.70.4800.03319.89
7.0.60.0100.07319.91
7.0.50.0170.07017.66
7.0.40.0070.08320.01
7.0.30.0230.08020.04
7.0.20.0230.04720.15
7.0.10.0370.07320.17
7.0.00.0100.06320.19
5.6.280.0030.07321.10
5.6.210.0070.07720.61
5.6.200.0030.05318.12
5.6.190.0030.07320.69
5.6.180.0130.06320.35
5.6.170.0130.06320.54
5.6.160.0100.04320.35
5.6.150.0100.08018.22
5.6.140.0070.08018.13
5.6.130.0130.07718.14
5.6.120.0070.08321.10
5.6.110.0300.06021.00
5.6.100.0000.04721.10
5.6.90.0130.07720.97
5.6.80.0130.07320.50
5.6.70.0370.06720.49
5.5.350.0170.08020.40
5.5.340.0070.08017.91
5.5.330.0030.10320.40
5.5.320.0100.07720.21
5.5.310.0300.07720.16
5.5.300.0100.06318.00
5.5.290.0070.04718.02
5.5.280.0070.08320.88
5.5.270.0070.04020.80
5.5.260.0130.06020.96
5.5.250.0130.07020.70
5.5.240.0000.07020.14
5.4.450.0900.03719.21
5.4.440.0600.06719.60
5.4.430.0800.06019.27
5.4.420.0970.05019.47
5.4.410.0800.05019.34
5.4.400.1170.04318.95
5.4.390.0100.05718.97
5.4.380.0470.04318.72
5.4.370.0300.05318.61
5.4.360.0330.05718.61
5.4.350.0370.06718.49
5.4.340.0370.06318.55
5.4.320.0040.03712.45
5.4.310.0060.04112.45
5.4.300.0070.03712.45
5.4.290.0090.03312.45
5.4.280.0080.03712.34
5.4.270.0050.04212.35
5.4.260.0060.03912.34
5.4.250.0060.04012.35
5.4.240.0050.03612.35
5.4.230.0090.03812.34
5.4.220.0040.03812.34
5.4.210.0050.04112.34
5.4.200.0060.03812.34
5.4.190.0060.04012.33
5.4.180.0030.03712.34
5.4.170.0050.03512.34
5.4.160.0040.03612.34
5.4.150.0090.03812.34
5.4.140.0040.03812.02
5.4.130.0060.04212.01
5.4.120.0090.03711.97
5.4.110.0090.03511.96
5.4.100.0020.04311.96
5.4.90.0040.03811.96
5.4.80.0040.03711.96
5.4.70.0090.03411.96
5.4.60.0040.03511.96
5.4.50.0050.04411.96
5.4.40.0100.03511.95
5.4.30.0070.03911.95
5.4.20.0040.04111.95
5.4.10.0080.03611.95
5.4.00.0050.03511.44
5.3.290.0060.03912.80
5.3.280.0050.03712.71
5.3.270.0070.04612.73
5.3.260.0070.04112.72
5.3.250.0030.04112.71
5.3.240.0110.04112.72
5.3.230.0060.04212.71
5.3.220.0120.03312.68
5.3.210.0050.04012.68
5.3.200.0060.03812.68
5.3.190.0070.03712.67
5.3.180.0070.03812.67
5.3.170.0040.04312.66
5.3.160.0060.03912.67
5.3.150.0060.03912.67
5.3.140.0060.03812.66
5.3.130.0140.04012.66
5.3.120.0040.04012.66
5.3.110.0060.03912.66
5.3.100.0090.03312.12
5.3.90.0080.03412.08
5.3.80.0070.03412.08
5.3.70.0050.03712.07
5.3.60.0080.03412.07
5.3.50.0050.03612.00
5.3.40.0110.03512.00
5.3.30.0060.03511.95
5.3.20.0040.03711.72
5.3.10.0030.03811.69
5.3.00.0060.03911.68
5.2.170.0040.0309.18
5.2.160.0060.0289.18
5.2.150.0050.0319.18
5.2.140.0050.0369.18
5.2.130.0040.0299.13
5.2.120.0050.0299.14
5.2.110.0050.0289.14
5.2.100.0040.0289.14
5.2.90.0080.0279.14
5.2.80.0060.0289.14
5.2.70.0080.0269.13
5.2.60.0050.0359.09
5.2.50.0070.0299.05
5.2.40.0040.0289.03
5.2.30.0050.0289.01
5.2.20.0090.0319.00
5.2.10.0030.0328.92
5.2.00.0040.0378.78
5.1.60.0030.0258.06
5.1.50.0040.0298.05
5.1.40.0060.0308.04
5.1.30.0040.0318.39
5.1.20.0040.0268.41
5.1.10.0030.0338.13
5.1.00.0030.0358.14
5.0.50.0030.0236.61
5.0.40.0030.0246.48
5.0.30.0030.0306.29
5.0.20.0020.0206.26
5.0.10.0040.0246.24
5.0.00.0030.0366.23
4.4.90.0060.0214.78
4.4.80.0030.0204.76
4.4.70.0060.0114.75
4.4.60.0030.0224.76
4.4.50.0020.0164.77
4.4.40.0030.0304.71
4.4.30.0010.0174.76
4.4.20.0020.0164.84
4.4.10.0030.0164.85
4.4.00.0030.0264.76
4.3.110.0020.0164.67
4.3.100.0020.0154.67
4.3.90.0010.0164.63
4.3.80.0030.0234.58
4.3.70.0020.0154.63
4.3.60.0020.0174.63
4.3.50.0010.0164.63
4.3.40.0040.0214.53
4.3.30.0010.0163.28
4.3.20.0000.0173.26
4.3.10.0010.0163.22
4.3.00.0170.01316.39

preferences:
61.24 ms | 401 KiB | 5 Q