3v4l.org

run code in 300+ PHP versions simultaneously
<?php $obj = new stdClass; $obj->post_id = 70242; $obj->image_id = 70244; $obj->large_image = 0; $array = array($obj); $post_ids = array_column($array, 'post_id'); /*$array = array( 0 => stdClass Object ( 'post_id' => 70242, 'image_id' => 70244, 'large_image' => 0 ), 1 => stdClass Object ( 'post_id' => 70327, 'image_id' => 70339, 'large_image' => 1 ), 2 => stdClass Object ( 'post_id' => 70017, 'image_id' => 70212, 'large_image' => 1 ) );*/ print_r($post_ids);

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.01116.63
8.3.50.0120.00721.95
8.3.40.0110.00418.79
8.3.30.0070.00719.09
8.3.20.0000.00820.25
8.3.10.0070.00023.66
8.3.00.0080.00019.38
8.2.180.0090.01218.26
8.2.170.0130.00622.96
8.2.160.0160.00320.44
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0070.00726.16
8.2.120.0050.00322.25
8.2.110.0060.00321.95
8.2.100.0110.00017.72
8.2.90.0000.00819.17
8.2.80.0000.00817.97
8.2.70.0080.00017.63
8.2.60.0050.00317.80
8.2.50.0060.00318.07
8.2.40.0000.00819.82
8.2.30.0000.00819.93
8.2.20.0000.00817.72
8.2.10.0040.00417.99
8.2.00.0040.00417.58
8.1.280.0140.00425.92
8.1.270.0000.00823.91
8.1.260.0000.00826.35
8.1.250.0070.00028.09
8.1.240.0060.00323.96
8.1.230.0030.00718.97
8.1.220.0040.00417.74
8.1.210.0000.00918.77
8.1.200.0090.00017.25
8.1.190.0050.00317.35
8.1.180.0000.01018.10
8.1.170.0040.00418.50
8.1.160.0070.00022.01
8.1.150.0070.00018.67
8.1.140.0040.00417.45
8.1.130.0030.00317.90
8.1.120.0040.00417.44
8.1.110.0030.00517.53
8.1.100.0030.00517.43
8.1.90.0040.00417.45
8.1.80.0040.00417.49
8.1.70.0030.00317.34
8.1.60.0040.00417.61
8.1.50.0030.00517.39
8.1.40.0040.00417.41
8.1.30.0040.00417.53
8.1.20.0000.00817.69
8.1.10.0040.00417.52
8.1.00.0080.00017.50
8.0.300.0060.00320.61
8.0.290.0070.00017.15
8.0.280.0000.00718.45
8.0.270.0000.00717.19
8.0.260.0000.00617.19
8.0.250.0030.00316.94
8.0.240.0070.00017.00
8.0.230.0030.00316.92
8.0.220.0050.00316.93
8.0.210.0030.00416.88
8.0.200.0040.00416.93
8.0.190.0040.00416.84
8.0.180.0040.00416.79
8.0.170.0000.00816.92
8.0.160.0030.00316.82
8.0.150.0030.00516.95
8.0.140.0050.00216.85
8.0.130.0040.00413.38
8.0.120.0050.00316.89
8.0.110.0000.00716.91
8.0.100.0040.00416.74
8.0.90.0000.00816.85
8.0.80.0000.01516.92
8.0.70.0040.00416.75
8.0.60.0030.00516.84
8.0.50.0070.00016.83
8.0.30.0140.00517.06
8.0.20.0090.00917.42
8.0.10.0000.00816.85
8.0.00.0120.00716.79
7.4.330.0050.00015.04
7.4.320.0030.00316.46
7.4.300.0030.00316.64
7.4.290.0000.00716.41
7.4.280.0000.00916.61
7.4.270.0000.00816.60
7.4.260.0030.00316.63
7.4.250.0080.00016.48
7.4.240.0030.00316.56
7.4.230.0040.00416.70
7.4.220.0120.01216.70
7.4.210.0070.00816.63
7.4.200.0030.00316.67
7.4.190.0000.00716.48
7.4.160.0140.00416.58
7.4.150.0070.01017.40
7.4.140.0120.00517.86
7.4.130.0130.00316.54
7.4.120.0080.00916.57
7.4.110.0140.00316.52
7.4.100.0100.00716.41
7.4.90.0100.00716.52
7.4.80.0140.00619.39
7.4.70.0040.01216.43
7.4.60.0030.01316.34
7.4.50.0040.00416.47
7.4.40.0090.00916.66
7.4.30.0060.01016.58
7.4.00.0090.00614.99
7.3.330.0060.00013.06
7.3.320.0000.00513.25
7.3.310.0040.00416.27
7.3.300.0030.00316.15
7.3.290.0070.00716.25
7.3.280.0100.00716.28
7.3.270.0070.01117.40
7.3.260.0160.00316.45
7.3.250.0110.00716.33
7.3.240.0080.00816.41
7.3.230.0030.01416.39
7.3.210.0050.01516.17
7.3.200.0110.01019.39
7.3.190.0140.00916.20
7.3.180.0120.00416.40
7.3.170.0090.00616.43
7.3.160.0060.00916.18
7.3.120.0040.01214.90
7.2.330.0090.00916.37
7.2.320.0060.01016.66
7.2.310.0070.01316.66
7.2.300.0060.00916.53
7.2.290.0000.01716.69
7.2.60.0030.01016.63
7.2.00.0090.00619.48
7.1.200.0060.00315.86
7.1.100.0030.01017.99
7.1.70.0000.00716.95
7.1.60.0090.01519.46
7.1.50.0140.00616.89
7.1.00.0070.07322.54
7.0.200.0040.00416.75
7.0.140.0070.07022.04
7.0.60.0170.07319.84
7.0.50.0030.04017.72
7.0.40.0030.05020.30
7.0.30.0570.07020.10
7.0.20.0230.03720.16
7.0.10.0370.07320.23
7.0.00.0200.07020.24
5.6.280.0070.07020.78
5.6.210.0070.07720.58
5.6.200.0170.07318.11
5.6.190.0070.04020.27
5.6.180.4100.03320.39
5.6.170.0270.05020.33
5.6.160.0100.07320.46
5.6.150.0070.08318.23
5.6.140.0130.03318.18
5.6.130.0030.07318.08
5.6.120.0170.07321.12
5.6.110.0070.08721.02
5.6.100.0030.06021.07
5.6.90.0130.06321.01
5.6.80.0100.08020.46
5.6.70.0300.05020.36
5.5.350.0300.07020.29
5.5.340.0100.04717.89
5.5.330.0030.04320.36
5.5.320.0470.05720.41
5.5.310.0270.05720.22
5.5.300.0070.05717.87
5.5.290.0070.05017.98
5.5.280.0030.08320.84
5.5.270.0070.04020.86
5.5.260.0070.08020.89
5.5.250.0070.05020.70
5.5.240.0100.06720.12
5.4.450.0800.05019.61
5.4.440.0800.05719.48
5.4.430.0830.06319.44
5.4.420.0670.00019.63
5.4.410.0100.06718.81
5.4.400.0230.05018.74
5.4.390.0200.05318.54
5.4.380.0230.05018.57
5.4.370.0170.04318.73
5.4.360.0170.03318.49
5.4.350.0070.03711.97
5.4.340.0070.03411.98
5.4.320.0080.03712.45
5.4.310.0060.04512.45
5.4.300.0060.03612.46
5.4.290.0070.10412.44
5.4.280.0210.08212.33
5.4.270.0090.07112.34
5.4.260.0140.07012.33
5.4.250.0060.06612.33
5.4.240.0260.11812.34
5.4.230.0150.09012.33
5.4.220.0120.07812.33
5.4.210.0060.08512.33
5.4.200.0110.07512.32
5.4.190.0090.07912.32
5.4.180.0100.05412.32
5.4.170.0100.05412.33
5.4.160.0070.05612.33
5.4.150.0100.05212.32
5.4.140.0080.05612.01
5.4.130.0060.05312.00
5.4.120.0100.05411.95
5.4.110.0080.05811.95
5.4.100.0050.05711.95
5.4.90.0090.05811.95
5.4.80.0120.07411.95
5.4.70.0140.07911.95
5.4.60.0090.07111.95
5.4.50.0170.10411.95
5.4.40.0080.06711.94
5.4.30.0070.05911.93
5.4.20.0040.05411.93
5.4.10.0080.05311.93
5.4.00.0100.06111.43
5.3.290.0070.04412.80
5.3.280.0060.05712.71
5.3.270.0090.05612.72
5.3.260.0040.06312.72
5.3.250.0110.07912.72
5.3.240.0090.07512.72
5.3.230.0070.05812.71
5.3.220.0160.07312.68
5.3.210.0070.06012.68
5.3.200.0060.06012.68
5.3.190.0100.08412.68
5.3.180.0090.05112.67
5.3.170.0140.07512.67
5.3.160.0160.07812.67
5.3.150.0150.07812.67
5.3.140.0200.08812.66
5.3.130.0200.08012.66
5.3.120.0120.05312.66
5.3.110.0180.08612.66
5.3.100.0180.07312.12
5.3.90.0180.07612.08
5.3.80.0180.07712.08
5.3.70.0160.07212.08
5.3.60.0100.08112.06
5.3.50.0150.06612.00
5.3.40.0110.07712.00
5.3.30.0120.05311.95
5.3.20.0130.04911.73
5.3.10.0130.04811.70
5.3.00.0090.05311.68
5.2.170.0080.0449.18
5.2.160.0070.0399.18
5.2.150.0110.0469.18
5.2.140.0100.0599.18
5.2.130.0120.0709.14
5.2.120.0090.0469.14
5.2.110.0070.0429.15
5.2.100.0120.0669.14
5.2.90.0170.0799.14
5.2.80.0150.0639.14
5.2.70.0100.0669.14
5.2.60.0120.0379.09
5.2.50.0070.0399.06
5.2.40.0060.0459.04
5.2.30.0070.0479.01
5.2.20.0090.0409.00
5.2.10.0070.0428.92
5.2.00.0100.0418.78
5.1.60.0070.0368.07
5.1.50.0090.0348.06
5.1.40.0030.0428.04
5.1.30.0100.0368.39
5.1.20.0040.0428.41
5.1.10.0050.0398.14
5.1.00.0060.0388.14
5.0.50.0060.0286.62
5.0.40.0260.0656.48
5.0.30.0120.0756.29
5.0.20.0130.0566.26
5.0.10.0140.0486.25
5.0.00.0060.0756.23
4.4.90.0060.0394.78
4.4.80.0130.0374.75
4.4.70.0050.0304.75
4.4.60.0040.0204.76
4.4.50.0060.0374.77
4.4.40.0050.0534.71
4.4.30.0040.0444.76
4.4.20.0100.0324.85
4.4.10.0020.0254.85
4.4.00.0030.0344.76
4.3.110.0040.0214.67
4.3.100.0030.0224.66
4.3.90.0050.0214.63
4.3.80.0020.0294.58
4.3.70.0030.0174.63
4.3.60.0040.0224.63
4.3.50.0030.0224.63
4.3.40.0060.0354.54
4.3.30.0030.0243.28
4.3.20.0020.0233.26
4.3.10.0050.0183.22
4.3.00.0030.0206.66

preferences:
43.2 ms | 401 KiB | 5 Q