3v4l.org

run code in 300+ PHP versions simultaneously
<?php $collection = array( 0 => array ( 0 => '1002', //Push to new array1 1 => '1003' //Push to new array2 ), 1 => array( 0 => '7', //Push to new array1 1 => '7' //Push to new array2 ), 2 => array( 0 => 'This is my first comment in the box', //Push to new array1 1 => '1This is my first comment in the box' //Push to new array2 ), 3 => array( 0 => '2014-01-01 01:16:05', //Push to new array1 1 => '2014-01-01 01:16:05' //Push to new array2 ) ); $collection = array( array_column($collection, 0), array_column($collection, 1) ); var_dump($collection);

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.70.0070.00718.43
8.3.60.0110.00418.43
8.3.50.0170.01121.14
8.3.40.0150.00618.87
8.3.30.0050.00820.18
8.3.20.0040.00420.23
8.3.10.0030.00622.02
8.3.00.0080.00022.46
8.2.180.0150.00616.75
8.2.170.0130.00722.96
8.2.160.0040.01418.87
8.2.150.0030.00624.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0040.00420.82
8.2.110.0070.00422.07
8.2.100.0060.00617.72
8.2.90.0000.00817.91
8.2.80.0000.00817.97
8.2.70.0040.00417.63
8.2.60.0130.00017.93
8.2.50.0040.00418.07
8.2.40.0040.00418.15
8.2.30.0000.00719.35
8.2.20.0000.00717.57
8.2.10.0050.00217.67
8.2.00.0060.00317.65
8.1.280.0040.01125.92
8.1.270.0050.00323.99
8.1.260.0080.00026.35
8.1.250.0050.00328.09
8.1.240.0090.00622.53
8.1.230.0110.00021.04
8.1.220.0030.00517.74
8.1.210.0030.00518.77
8.1.200.0000.00917.23
8.1.190.0030.00517.53
8.1.180.0040.00418.10
8.1.170.0050.00318.66
8.1.160.0040.00418.89
8.1.150.0000.00718.67
8.1.140.0070.00017.45
8.1.130.0000.00717.73
8.1.120.0000.00717.51
8.1.110.0040.00417.50
8.1.100.0030.00417.52
8.1.90.0000.00717.34
8.1.80.0040.00417.47
8.1.70.0030.00317.46
8.1.60.0030.00617.49
8.1.50.0000.00717.55
8.1.40.0000.01117.49
8.1.30.0040.00417.64
8.1.20.0000.00817.66
8.1.10.0030.00617.42
8.1.00.0100.00017.37
8.0.300.0040.00419.98
8.0.290.0050.00217.04
8.0.280.0070.00018.49
8.0.270.0070.00017.25
8.0.260.0000.00616.89
8.0.250.0070.00017.02
8.0.240.0000.00816.84
8.0.230.0040.00416.82
8.0.220.0070.00016.84
8.0.210.0000.00716.91
8.0.200.0050.00216.81
8.0.190.0000.00816.85
8.0.180.0070.00016.89
8.0.170.0000.00816.90
8.0.160.0040.00416.98
8.0.150.0040.00416.87
8.0.140.0000.01016.88
8.0.130.0030.00313.28
8.0.120.0000.00816.80
8.0.110.0040.00416.91
8.0.100.0000.00716.98
8.0.90.0000.00816.69
8.0.80.0040.01116.83
8.0.70.0040.00416.80
8.0.60.0000.00816.95
8.0.50.0000.00716.71
8.0.30.0150.00717.05
8.0.20.0080.01017.40
8.0.10.0050.00216.82
8.0.00.0150.00516.74
7.4.330.0020.00216.82
7.4.320.0000.00616.64
7.4.300.0060.00016.49
7.4.290.0060.00016.50
7.4.280.0070.00016.63
7.4.270.0040.00416.61
7.4.260.0060.00013.28
7.4.250.0080.00016.61
7.4.240.0070.00016.49
7.4.230.0030.00316.32
7.4.220.0110.00816.46
7.4.210.0090.00916.61
7.4.200.0040.00416.61
7.4.190.0030.00316.38
7.4.160.0060.00916.49
7.4.150.0090.00917.40
7.4.140.0090.00917.86
7.4.130.0120.00616.58
7.4.120.0120.00616.54
7.4.110.0130.00316.48
7.4.100.0130.00316.48
7.4.90.0100.00616.56
7.4.80.0120.00619.39
7.4.70.0050.01116.31
7.4.60.0130.00316.37
7.4.50.0040.00416.30
7.4.40.0090.00622.77
7.4.30.0150.00316.47
7.4.00.0100.00414.70
7.3.330.0040.00413.04
7.3.320.0040.00412.91
7.3.310.0000.00716.02
7.3.300.0030.00316.20
7.3.290.0090.00616.16
7.3.280.0050.01116.18
7.3.270.0090.00817.40
7.3.260.0140.00316.30
7.3.250.0090.00916.37
7.3.240.0080.00816.22
7.3.230.0090.00916.39
7.3.210.0100.00616.41
7.3.200.0070.01019.39
7.3.190.0110.01116.17
7.3.180.0110.00716.26
7.3.170.0100.00716.27
7.3.160.0070.01016.52
7.3.120.0090.00614.72
7.3.10.0000.01416.51
7.3.00.0030.01016.61
7.2.330.0030.01716.57
7.2.320.0140.00916.53
7.2.310.0030.01316.31
7.2.300.0090.01216.36
7.2.290.0100.00716.49
7.2.130.0070.00716.71
7.2.120.0060.00316.45
7.2.110.0090.00616.85
7.2.100.0030.00616.59
7.2.90.0040.00816.71
7.2.80.0030.01216.74
7.2.70.0120.00316.91
7.2.60.0060.00616.94
7.2.50.0060.00916.86
7.2.40.0000.01516.80
7.2.30.0110.00016.96
7.2.20.0060.00616.89
7.2.10.0070.00716.47
7.2.00.0040.00718.11
7.1.250.0030.01015.75
7.1.100.0040.00418.29
7.1.70.0000.00817.06
7.1.60.0100.00317.20
7.1.50.0110.00316.80
7.1.40.0090.00316.28
7.1.30.0060.00816.79
7.1.20.0140.00716.52
7.1.10.0040.00716.50
7.1.00.0030.00516.75
7.0.200.0030.00616.65
7.0.190.0080.00316.64
7.0.180.0030.00516.14
7.0.170.0030.00716.17
7.0.160.0060.00616.00
7.0.150.0000.01016.22
7.0.140.0030.00616.26
7.0.130.0030.00716.27
7.0.120.0050.00316.56
7.0.110.0080.00016.22
7.0.100.0000.00816.21
7.0.90.0030.00516.07
7.0.80.0060.00316.33
7.0.70.0070.00416.06
7.0.60.0000.01016.23
7.0.50.0000.01116.21
7.0.40.0060.00315.24
7.0.30.0000.00915.24
7.0.20.0000.00715.24
7.0.10.0060.00615.24
7.0.00.0000.01015.24
5.6.300.0100.03320.90
5.6.290.0070.04321.00
5.6.280.0030.04020.77
5.6.270.0030.04020.90
5.6.260.0030.04520.89
5.6.250.0000.04721.05
5.6.240.0030.04120.84
5.6.230.0030.04820.97
5.6.220.0060.04120.84
5.6.210.0060.04920.93
5.6.200.0030.05220.98
5.6.190.0040.04620.99
5.6.180.0070.03921.03
5.6.170.0000.04520.79
5.6.160.0000.05120.97
5.6.150.0030.04220.82
5.6.140.0030.04720.78
5.6.130.0060.03920.97
5.6.120.0000.04920.88
5.6.110.0000.04620.82
5.6.100.0070.04020.81
5.6.90.0000.04820.91
5.6.80.0070.03520.24
5.6.70.0000.04120.16
5.6.60.0030.04420.22
5.6.50.0160.02820.41
5.6.40.0060.03620.35
5.6.30.0070.04420.18
5.6.20.0000.04320.40
5.6.10.0000.04820.09
5.6.00.0040.03920.25
5.5.380.0000.04417.51
5.5.370.0030.04117.44
5.5.360.0130.03517.56
5.5.350.0000.04217.47
5.5.340.0030.04417.97
5.5.330.0060.03517.84
5.5.320.0030.05118.03
5.5.310.0040.04217.99
5.5.300.0000.04518.05
5.5.290.0030.04518.11
5.5.280.0000.05017.95
5.5.270.0360.04918.01
5.5.260.0000.04718.02
5.5.250.0100.05317.88
5.5.240.0000.04117.41
5.5.230.0030.04417.45
5.5.220.0000.04317.40
5.5.210.0070.03317.40
5.5.200.0000.04217.21
5.5.190.0200.04017.38
5.5.180.0000.04217.46
5.5.160.0070.03317.05
5.5.150.0070.03317.09
5.5.140.0000.04217.09
5.5.130.0030.04017.29
5.5.120.0070.03317.36
5.5.110.0030.03717.40
5.5.100.0100.05216.96
5.5.90.0000.06816.95
5.5.80.0030.04417.28
5.5.70.0000.04417.24
5.5.60.0060.03516.98
5.5.50.0030.04817.27
5.5.40.0030.04916.95
5.5.30.0030.06317.26
5.5.20.0070.07417.08
5.5.10.0000.04216.98
5.5.00.0070.04017.26
5.4.450.0000.04819.32
5.4.440.0000.04219.31
5.4.430.0000.04419.46
5.4.420.0030.04219.36
5.4.410.0030.04719.24
5.4.400.0190.04118.90
5.4.390.0000.04518.82
5.4.380.0030.03619.06
5.4.370.0070.03918.85
5.4.360.0000.05018.92
5.4.350.0070.03318.97
5.4.340.0000.04819.11
5.4.320.0030.04019.13
5.4.310.0000.04318.82
5.4.300.0070.03719.09
5.4.290.0030.03818.84
5.4.280.0030.04019.00
5.4.270.0040.03618.89
5.4.260.0030.03818.91
5.4.250.0030.03619.09
5.4.240.0070.03619.06
5.4.230.0040.03919.00
5.4.220.0130.03519.10
5.4.210.0070.04019.13
5.4.200.0000.04019.11
5.4.190.0000.03818.97
5.4.180.0030.05019.02
5.4.170.0030.03918.92
5.4.160.0100.03018.84
5.4.150.0070.03418.80
5.4.140.0030.03616.64
5.4.130.0030.03516.65
5.4.120.0030.03516.30
5.4.110.0030.03616.39
5.4.100.0030.05116.66
5.4.90.0040.03616.52
5.4.80.0070.04016.32
5.4.70.0070.05916.54
5.4.60.0000.04016.64
5.4.50.0030.03716.38
5.4.40.0030.03816.62
5.4.30.0030.03416.41
5.4.20.0070.03816.56
5.4.10.0060.04216.53
5.4.00.0270.02316.10
5.3.290.0000.05515.24
5.3.280.0070.07315.24
5.3.270.0030.03715.24
5.3.260.0070.03215.24
5.3.250.0000.04515.24
5.3.240.0000.03915.24
5.3.230.0040.03515.24
5.3.220.0000.03815.24
5.3.210.0000.07015.24
5.3.200.0100.04515.24
5.3.190.0070.05015.24
5.3.180.0000.04815.24
5.3.170.0000.04015.24
5.3.160.0070.03615.24
5.3.150.0030.03915.24
5.3.140.0000.04715.24
5.3.130.0030.03615.24
5.3.120.0030.04815.24
5.3.110.0030.06815.24
5.3.100.0000.06115.24
5.3.90.0000.04115.24
5.3.80.0100.03815.24
5.3.70.0000.03915.24
5.3.60.0000.04015.24
5.3.50.0100.03015.24
5.3.40.0000.03915.24
5.3.30.0060.03215.24
5.3.20.0000.03715.24
5.3.10.0070.04215.24
5.3.00.0030.05215.24
5.2.170.0060.02915.24
5.2.160.0030.02715.24
5.2.150.0000.03315.24
5.2.140.0030.02815.24
5.2.130.0030.03415.24
5.2.120.0030.02915.24
5.2.110.0030.02915.24
5.2.100.0000.05015.24
5.2.90.0000.03215.24
5.2.80.0030.03515.24
5.2.70.0030.02915.24
5.2.60.0030.03115.24
5.2.50.0040.02815.24
5.2.40.0000.03215.24
5.2.30.0130.03015.24
5.2.20.0000.03015.24
5.2.10.0060.02515.24
5.2.00.0070.02715.24
5.1.60.0030.02815.24
5.1.50.0000.02715.24
5.1.40.0060.01915.24
5.1.30.0000.02715.24
5.1.20.0040.02915.24
5.1.10.0030.02915.24
5.1.00.0000.02915.24
5.0.50.0030.01915.24
5.0.40.0030.02215.24
5.0.30.0000.03915.24
5.0.20.0070.01415.24
5.0.10.0000.02215.24
5.0.00.0030.03615.24
4.4.90.0040.01415.24
4.4.80.0000.01815.24
4.4.70.0030.01315.24
4.4.60.0000.01715.24
4.4.50.0030.01315.24
4.4.40.0030.02215.24
4.4.30.0030.01315.24
4.4.20.0030.01315.24
4.4.10.0030.01315.24
4.4.00.0030.02715.24
4.3.110.0000.01815.24
4.3.100.0000.01515.24
4.3.90.0000.01615.24
4.3.80.0030.02815.24
4.3.70.0000.01715.24
4.3.60.0040.01215.24
4.3.50.0000.01615.24
4.3.40.0000.02415.24
4.3.30.0040.02515.24
4.3.20.0040.01515.24
4.3.10.0000.01715.24
4.3.00.0030.01615.24

preferences:
42.44 ms | 401 KiB | 5 Q