3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ 'id1' => ['primary_key' => '123', 'test' => 'test'], 'id2' => ['primary_key' => '123', 'test' => 'test'], 'id3' => ['primary_key' => '123', 'test' => 'test'] ]; var_dump(array_column($array, 'primary_key'));

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.00.0250.00816.27
8.4.150.0230.00621.06
8.4.140.0340.00917.54
8.4.130.0370.01117.35
8.4.120.0430.00817.57
8.4.110.0350.01217.61
8.4.100.0380.01117.50
8.4.90.0400.00917.39
8.4.80.0450.01417.42
8.4.70.0430.00617.53
8.4.60.0410.01017.57
8.4.50.0380.01017.42
8.4.40.0440.01017.38
8.4.30.0430.01117.31
8.4.20.0440.00917.44
8.4.10.0420.01119.30
8.3.280.0280.00718.01
8.3.270.0360.00516.46
8.3.260.0340.00316.38
8.3.250.0370.01016.37
8.3.240.0340.01216.42
8.3.230.0370.01016.48
8.3.220.0340.01316.39
8.3.210.0380.01016.44
8.3.200.0400.00816.64
8.3.190.0370.01116.30
8.3.180.0380.00818.07
8.3.170.0390.00616.62
8.3.160.0370.01016.57
8.3.150.0420.00918.33
8.3.140.0390.00916.39
8.3.130.0410.01016.16
8.3.120.0310.01016.15
8.3.110.0400.00516.49
8.3.100.0400.00918.19
8.3.90.0340.01016.39
8.3.80.0390.01016.48
8.3.70.0380.01216.44
8.3.60.0390.00916.50
8.3.50.0450.00616.50
8.3.40.0320.01017.50
8.3.30.0240.01119.50
8.3.20.0260.00817.43
8.3.10.0290.01017.84
8.3.00.0290.00817.65
8.2.290.0290.01016.29
8.2.280.0330.00716.38
8.2.270.0300.01116.41
8.2.260.0280.01016.58
8.2.250.0320.00716.31
8.2.240.0290.00918.18
8.2.230.0290.00916.29
8.2.220.0300.01015.89
8.2.210.0320.00916.42
8.2.200.0290.01216.57
8.2.190.0280.01316.57
8.2.180.0280.01016.43
8.2.170.0310.00817.82
8.2.160.0370.00619.71
8.2.150.0380.00617.55
8.2.140.0320.00717.76
8.2.130.0290.00917.84
8.2.120.0300.00617.68
8.2.110.0300.01217.50
8.2.100.0300.01217.69
8.2.90.0320.00917.68
8.2.80.0340.00917.60
8.2.70.0310.00917.83
8.2.60.0300.00817.68
8.2.50.0310.00817.48
8.2.40.0260.01219.25
8.2.30.0300.00617.59
8.2.20.0330.00717.42
8.2.10.0290.00917.34
8.2.00.0350.00917.48

preferences:
29.17 ms | 403 KiB | 5 Q