3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ [ 'price' => [ 'cost' => 200, 'tax' => 10, 'total' => 210 ], 'otherKey' => 'etc' ], [ 'price' => [ 'cost' => 500, 'tax' => 50, 'total' => 550 ], 'otherKey' => 'etc' ], [ 'price' => [ 'cost' => 600, 'tax' => 60, 'total' => 660 ], 'otherKey' => 'etc' ], ]; var_export( array_column( array_column( $array, 'price' ), 'total' ) );

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.5.10.0110.00820.23
8.5.00.0100.01219.68
8.4.150.0020.00014.05
8.4.140.0120.00917.65
8.4.130.0120.00917.55
8.4.120.0060.01124.00
8.4.110.0150.00522.54
8.4.100.0070.00317.61
8.4.90.0120.00317.60
8.4.80.0130.00717.86
8.4.70.0250.00917.87
8.4.60.0120.00818.58
8.4.50.0120.00817.52
8.4.40.0150.00819.23
8.4.30.0100.01018.69
8.4.20.0030.01719.59
8.4.10.0120.00323.75
8.3.280.0120.01018.18
8.3.270.0120.00716.72
8.3.260.0100.00916.59
8.3.250.0120.00718.77
8.3.240.0110.00817.05
8.3.230.0120.00716.41
8.3.220.0050.00417.28
8.3.210.0060.00216.63
8.3.200.0030.00616.40
8.3.190.0120.00616.92
8.3.180.0130.00518.43
8.3.170.0100.00720.43
8.3.160.0030.00716.45
8.3.150.0150.00320.74
8.3.140.0100.00316.32
8.3.130.0040.00418.46
8.3.120.0000.00818.97
8.3.110.0060.00320.94
8.3.100.0060.00316.74
8.3.90.0100.00726.77
8.3.80.0060.00318.18
8.3.70.0120.00316.38
8.3.60.0140.00716.38
8.3.50.0070.01118.16
8.3.40.0170.00319.96
8.3.30.0070.00718.42
8.3.20.0000.00724.18
8.3.10.0050.00324.66
8.3.00.0060.00326.16
8.2.290.0070.01120.14
8.2.280.0150.00418.23
8.2.270.0070.01117.34
8.2.260.0030.01516.88
8.2.250.0070.01018.25
8.2.240.0120.00316.22
8.2.230.0050.00322.58
8.2.220.0110.00724.06
8.2.210.0080.00026.77
8.2.200.0090.00018.29
8.2.190.0060.00918.16
8.2.180.0140.00316.38
8.2.170.0110.00418.96
8.2.160.0080.00622.96
8.2.150.0080.00025.66
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0040.00421.13
8.2.110.0090.00020.96
8.2.100.0060.00617.72
8.2.90.0000.00719.14
8.2.80.0040.00420.48
8.2.70.0040.00417.50
8.2.60.0090.00017.63
8.2.50.0130.00519.49
8.2.40.0090.00919.49
8.2.30.0120.00419.49
8.2.20.0130.00419.49
8.2.10.0100.00819.49
8.2.00.0130.00419.49
8.1.330.0120.00821.83
8.1.320.0060.00316.24
8.1.310.0070.01118.56
8.1.300.0140.00418.44
8.1.290.0060.00330.84
8.1.280.0140.00025.92
8.1.270.0050.00324.66
8.1.260.0000.00826.35
8.1.250.0050.00328.09
8.1.240.0060.00621.93
8.1.230.0060.00620.97
8.1.220.0000.00917.74
8.1.210.0040.00418.81
8.1.200.0060.00317.13
8.1.190.0050.00317.00
8.1.180.0170.00019.49
8.1.170.0170.00019.49
8.1.160.0100.01019.49
8.1.150.0140.00219.49
8.1.140.0050.01019.49
8.1.130.0170.00019.49
8.1.120.0030.01419.49
8.1.110.0110.00619.49
8.1.100.0090.00919.49
8.1.90.0120.00519.49
8.1.80.0140.00319.49
8.1.70.0120.00419.49
8.1.60.0140.00919.49
8.1.50.0160.00419.49
8.1.40.0140.00719.49
8.1.30.0160.00319.49
8.1.20.0140.00519.49
8.1.10.0150.00419.49
8.1.00.0190.00019.49
8.0.300.0070.00019.77
8.0.290.0070.00016.63
8.0.280.0080.00819.49
8.0.270.0150.00219.49
8.0.260.0140.00319.49
8.0.250.0120.00419.49
8.0.240.0090.00919.49
8.0.230.0180.00019.49
8.0.220.0130.00519.49
8.0.210.0080.00819.49
8.0.200.0130.00319.49
8.0.190.0110.00619.49
8.0.180.0150.00319.49
8.0.170.0090.00919.49
8.0.160.0130.00319.49
8.0.150.0130.00419.49
8.0.140.0050.01019.49
8.0.130.0100.00719.49
8.0.120.0140.00419.49
8.0.110.0120.00419.49
8.0.100.0130.00419.49
8.0.90.0130.00419.49
8.0.80.0140.00319.49
8.0.70.0090.00919.49
8.0.60.0120.00619.49
8.0.50.0180.00019.49
8.0.30.0150.00319.49
8.0.20.0160.00019.49
8.0.10.0090.00619.49

preferences:
108.49 ms | 406 KiB | 6 Q