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)), 2, ';')); 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.0140.00318.16
8.3.50.0160.00521.82
8.3.40.0120.00318.69
8.3.30.0100.00319.14
8.3.20.0080.00020.28
8.3.10.0040.00420.54
8.3.00.0050.00319.26
8.2.180.0130.00718.41
8.2.170.0160.00318.88
8.2.160.0090.00622.96
8.2.150.0040.00425.66
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0070.00022.23
8.2.110.0030.00722.25
8.2.100.0060.00617.91
8.2.90.0020.00519.21
8.2.80.0040.00417.97
8.2.70.0040.00417.63
8.2.60.0000.00817.93
8.2.50.0080.00018.07
8.2.40.0040.00418.09
8.2.30.0000.00719.13
8.2.20.0030.00617.67
8.2.10.0050.00318.13
8.2.00.0000.00917.63
8.1.280.0070.01125.92
8.1.270.0050.00323.92
8.1.260.0070.00026.35
8.1.250.0030.00528.09
8.1.240.0000.00923.92
8.1.230.0060.00619.21
8.1.220.0080.00017.78
8.1.210.0000.00718.77
8.1.200.0100.00317.10
8.1.190.0040.00417.22
8.1.180.0090.00018.10
8.1.170.0050.00518.36
8.1.160.0030.00521.95
8.1.150.0040.00418.85
8.1.140.0070.00017.27
8.1.130.0000.00717.71
8.1.120.0080.00017.31
8.1.110.0000.00817.29
8.1.100.0030.00317.31
8.1.90.0040.00417.39
8.1.80.0000.00717.44
8.1.70.0070.00017.32
8.1.60.0040.00417.42
8.1.50.0040.00417.36
8.1.40.0070.00017.46
8.1.30.0080.00017.64
8.1.20.0000.00817.61
8.1.10.0000.00717.58
8.1.00.0040.00417.42
8.0.300.0050.00318.77
8.0.290.0040.00416.63
8.0.280.0000.00718.44
8.0.270.0040.00417.14
8.0.260.0000.00617.27
8.0.250.0040.00416.96
8.0.240.0070.00016.96
8.0.230.0070.00016.88
8.0.220.0030.00316.86
8.0.210.0040.00416.72
8.0.200.0060.00016.81
8.0.190.0030.00316.92
8.0.180.0000.00716.84
8.0.170.0050.00316.86
8.0.160.0070.00016.92
8.0.150.0000.00816.72
8.0.140.0040.00416.82
8.0.130.0000.00913.30
8.0.120.0000.00716.82
8.0.110.0000.00716.86
8.0.100.0000.00716.63
8.0.90.0070.00016.63
8.0.80.0070.01116.75
8.0.70.0000.00716.71
8.0.60.0050.00316.82
8.0.50.0040.00416.83
8.0.30.0120.00716.85
8.0.20.0100.01117.40
8.0.10.0040.00416.94
8.0.00.0050.01216.71
7.4.330.0000.00515.03
7.4.320.0030.00316.45
7.4.300.0000.00716.55
7.4.290.0070.00016.45
7.4.280.0040.00416.53
7.4.270.0030.00316.51
7.4.260.0070.00016.43
7.4.250.0040.00416.41
7.4.240.0020.00516.53
7.4.230.0070.00016.55
7.4.220.0140.00616.39
7.4.210.0100.00316.32
7.4.200.0000.00716.55
7.4.160.0090.00916.34
7.4.150.0060.01517.40
7.4.140.0080.00817.86
7.4.130.0090.00916.48
7.4.120.0100.00716.42
7.4.110.0090.01216.36
7.4.100.0030.01716.50
7.4.90.0120.00616.36
7.4.80.0110.00918.80
7.4.70.0130.00916.56
7.4.60.0150.00316.31
7.4.50.0030.00516.65
7.4.40.0180.00316.41
7.4.30.0060.01016.52
7.4.00.0030.01514.86
7.3.330.0060.00012.93
7.3.320.0000.00613.05
7.3.310.0040.00416.03
7.3.300.0000.00716.26
7.3.290.0090.01216.19
7.3.280.0040.01216.18
7.3.270.0110.00617.40
7.3.260.0190.00316.23
7.3.250.0130.00316.37
7.3.240.0120.00916.45
7.3.230.0090.00616.43
7.3.210.0150.00316.14
7.3.200.0090.01219.39
7.3.190.0030.01316.29
7.3.180.0130.00316.37
7.3.170.0110.00516.36
7.3.160.0090.00616.50
7.3.120.0060.01114.55
7.3.110.0050.00714.79
7.3.100.0050.00914.56
7.3.90.0070.00714.73
7.3.80.0080.00714.66
7.3.70.0070.00714.80
7.3.60.0060.00814.65
7.3.50.0060.00814.68
7.3.40.0060.00714.64
7.3.30.0040.01214.61
7.3.20.0100.00716.46
7.3.10.0080.00716.67
7.3.00.0070.00816.64
7.2.330.0150.00316.61
7.2.320.0090.01016.64
7.2.310.0100.00716.50
7.2.300.0130.00316.54
7.2.290.0060.01016.42
7.2.250.0060.01014.88
7.2.240.0050.01214.91
7.2.230.0030.01214.91
7.2.220.0060.00514.96
7.2.210.0030.00814.93
7.2.200.0080.00614.86
7.2.190.0060.00714.98
7.2.180.0070.00714.96
7.2.170.0030.00814.79
7.2.160.0040.00814.80
7.2.150.0060.00616.70
7.2.140.0000.01716.66
7.2.130.0100.00316.75
7.2.120.0100.00616.86
7.2.110.0070.00716.79
7.2.100.0030.01016.59
7.2.90.0070.00716.85
7.2.80.0000.01216.61
7.2.70.0100.00616.62
7.2.60.0220.00816.59
7.2.50.0040.00816.89
7.2.40.0060.00916.74
7.2.30.0110.00716.66
7.2.20.0040.01116.99
7.2.10.0040.01116.37
7.2.00.0060.00618.03
7.1.330.0050.01015.79
7.1.320.0040.01115.61
7.1.310.0060.00615.54
7.1.300.0080.00315.79
7.1.290.0050.00915.78
7.1.280.0070.00715.72
7.1.270.0070.00815.73
7.1.260.0060.00815.71
7.1.250.0030.01015.46
7.1.200.0030.00915.60
7.1.100.0060.00918.13
7.1.70.0040.00417.03
7.1.60.0140.01019.32
7.1.50.0070.00416.91
7.1.00.0130.06322.30
7.0.200.0060.00316.74
7.0.140.0100.06322.21
7.0.70.4900.04019.88
7.0.60.0130.06319.93
7.0.50.0000.08017.86
7.0.40.0100.04020.01
7.0.30.0600.05020.00
7.0.20.0270.07720.01
7.0.10.0470.04720.12
7.0.00.0100.08720.16
5.6.280.0030.06721.04
5.6.210.0100.07020.61
5.6.200.0000.04318.12
5.6.190.0100.06720.41
5.6.180.0070.04320.59
5.6.170.0200.07320.41
5.6.160.0030.06020.40
5.6.150.0070.08018.13
5.6.140.0000.04018.11
5.6.130.0130.07018.14
5.6.120.0170.06321.10
5.6.110.0200.06321.00
5.6.100.0130.07721.10
5.6.90.0130.07020.96
5.6.80.0030.07320.40
5.6.70.0270.07020.35
5.5.350.0100.06020.29
5.5.340.0070.05017.96
5.5.330.0130.04020.23
5.5.320.0070.05020.07
5.5.310.0370.07320.20
5.5.300.0070.08017.91
5.5.290.0070.08317.94
5.5.280.0070.08720.89
5.5.270.0070.04020.66
5.5.260.0130.07320.86
5.5.250.0070.08320.68
5.5.240.0030.08020.12
5.4.450.0730.04319.60
5.4.440.0870.06019.62
5.4.430.0970.05319.49
5.4.420.1370.05019.39
5.4.410.1130.05019.36
5.4.400.0800.05719.21
5.4.390.1200.07319.07
5.4.380.0330.06018.74
5.4.370.0300.05018.69
5.4.360.0470.04018.52
5.4.350.0230.07018.61
5.4.340.0370.05018.68
5.4.320.0090.03512.45
5.4.310.0070.04012.45
5.4.300.0060.04212.45
5.4.290.0080.04012.45
5.4.280.0050.03412.34
5.4.270.0050.04412.35
5.4.260.0050.04012.34
5.4.250.0070.03512.35
5.4.240.0060.04112.35
5.4.230.0050.03812.34
5.4.220.0030.03812.34
5.4.210.0070.04112.34
5.4.200.0050.03712.34
5.4.190.0060.03512.33
5.4.180.0100.03112.33
5.4.170.0050.03712.35
5.4.160.0050.03612.34
5.4.150.0060.04012.34
5.4.140.0100.03412.02
5.4.130.0060.03512.01
5.4.120.0040.03811.97
5.4.110.0050.03911.96
5.4.100.0100.03411.96
5.4.90.0050.04511.96
5.4.80.0040.03911.96
5.4.70.0110.03111.96
5.4.60.0080.03511.96
5.4.50.0070.03311.96
5.4.40.0080.03211.95
5.4.30.0080.03611.95
5.4.20.0080.03311.95
5.4.10.0040.03511.94
5.4.00.0050.03911.44
5.3.290.0090.03712.80
5.3.280.0080.04412.71
5.3.270.0090.03512.72
5.3.260.0090.04112.72
5.3.250.0050.04012.72
5.3.240.0060.04612.72
5.3.230.0070.04112.71
5.3.220.0040.04112.68
5.3.210.0050.03912.68
5.3.200.0070.03912.68
5.3.190.0080.03512.68
5.3.180.0070.04512.67
5.3.170.0060.04312.67
5.3.160.0090.03812.68
5.3.150.0030.04112.68
5.3.140.0050.03712.66
5.3.130.0070.04312.66
5.3.120.0080.04012.66
5.3.110.0050.03912.66
5.3.100.0050.03812.12
5.3.90.0090.03312.09
5.3.80.0030.03812.07
5.3.70.0040.03712.07
5.3.60.0030.04012.07
5.3.50.0060.04112.00
5.3.40.0100.04312.00
5.3.30.0060.03611.94
5.3.20.0070.04111.72
5.3.10.0110.03511.69
5.3.00.0060.03511.68
5.2.170.0070.0369.18
5.2.160.0050.0309.18
5.2.150.0030.0329.18
5.2.140.0060.0359.17
5.2.130.0070.0269.13
5.2.120.0060.0299.14
5.2.110.0060.0359.14
5.2.100.0060.0309.14
5.2.90.0050.0289.14
5.2.80.0030.0319.13
5.2.70.0040.0309.14
5.2.60.0030.0309.09
5.2.50.0020.0329.06
5.2.40.0030.0329.03
5.2.30.0040.0319.01
5.2.20.0050.0289.00
5.2.10.0070.0248.92
5.2.00.0080.0258.78
5.1.60.0070.0208.06
5.1.50.0040.0248.05
5.1.40.0020.0288.04
5.1.30.0040.0258.39
5.1.20.0070.0298.41
5.1.10.0030.0268.13
5.1.00.0020.0268.14
5.0.50.0030.0246.62
5.0.40.0040.0256.47
5.0.30.0030.0316.29
5.0.20.0030.0196.26
5.0.10.0060.0176.23
5.0.00.0040.0386.23
4.4.90.0030.0194.78
4.4.80.0050.0164.75
4.4.70.0040.0174.76
4.4.60.0020.0164.75
4.4.50.0030.0194.77
4.4.40.0030.0284.71
4.4.30.0010.0164.75
4.4.20.0030.0224.84
4.4.10.0030.0194.85
4.4.00.0030.0294.76
4.3.110.0020.0224.67
4.3.100.0020.0154.67
4.3.90.0080.0164.63
4.3.80.0070.0324.58
4.3.70.0030.0154.63
4.3.60.0030.0184.63
4.3.50.0030.0144.63
4.3.40.0020.0314.54
4.3.30.0020.0153.28
4.3.20.0010.0173.26
4.3.10.0020.0153.21
4.3.00.0100.01716.39

preferences:
60.34 ms | 401 KiB | 5 Q