3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = [ [ 'foo' => 777.5 ], [ 'foo' => 777 ], [ 'foo' => '777' ], ]; var_dump(array_column($a, 'foo', 'foo'));

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.1.110.0040.00417.40
8.1.100.0000.00717.38
8.1.90.0030.00517.27
8.1.80.0000.00817.28
8.1.70.0030.00617.31
8.1.60.0000.00817.43
8.1.50.0080.00017.46
8.1.40.0030.00517.43
8.1.30.0030.00517.51
8.1.20.0060.00317.53
8.1.10.0040.00417.43
8.1.00.0000.00817.25
8.0.240.0000.00816.75
8.0.230.0060.00316.87
8.0.220.0000.00716.79
8.0.210.0070.00016.87
8.0.200.0030.00316.87
8.0.190.0040.00416.94
8.0.180.0060.00316.88
8.0.170.0030.00516.79
8.0.160.0000.00716.87
8.0.150.0040.00416.81
8.0.140.0040.00416.67
8.0.130.0000.00513.24
8.0.120.0040.00416.68
8.0.110.0000.00816.82
8.0.100.0000.00716.84
8.0.90.0020.00516.86
8.0.80.0070.00816.81
8.0.70.0030.00516.75
8.0.60.0040.00416.73
8.0.50.0070.00016.80
8.0.30.0120.00517.02
8.0.20.0110.00817.40
8.0.10.0040.00416.97
8.0.00.0100.00816.54
7.4.300.0030.00316.47
7.4.290.0030.00316.43
7.4.280.0000.00816.41
7.4.270.0050.00316.54
7.4.260.0040.00416.39
7.4.250.0030.00516.31
7.4.240.0030.00316.48
7.4.230.0070.00016.64
7.4.220.0040.00416.50
7.4.210.0030.01416.43
7.4.200.0000.00716.33
7.4.160.0110.00616.32
7.4.140.0070.01317.86
7.4.130.0120.01316.31
7.4.120.0090.01116.45
7.4.110.0130.00316.27
7.4.100.0090.00916.23
7.4.90.0070.01016.62
7.4.80.0090.01219.39
7.4.70.0060.00916.41
7.4.60.0060.01016.32
7.4.50.0110.00716.39
7.4.40.0140.01116.49
7.4.10.0130.00314.96
7.4.00.0100.00514.95
7.3.330.0020.00212.88
7.3.320.0000.00613.05
7.3.310.0040.00416.09
7.3.300.0030.00316.16
7.3.290.0070.00016.15
7.3.280.0130.00516.10
7.3.260.0080.01116.13
7.3.240.0110.00716.21
7.3.230.0110.00616.08
7.3.210.0120.00616.26
7.3.200.0100.01616.23
7.3.190.0040.01216.38
7.3.180.0110.00616.23
7.3.170.0030.01316.04
7.3.160.0080.00816.19
7.3.130.0100.00714.33
7.3.120.0030.01314.67
7.3.110.0150.00314.89
7.3.100.0070.00714.58
7.3.90.0040.01414.42
7.3.80.0000.00914.75
7.3.70.0000.01514.82
7.3.60.0090.00014.79
7.3.50.0040.01114.59
7.3.40.0040.01114.66
7.3.30.0030.00714.75
7.3.20.0080.00416.53
7.3.10.0090.00516.46
7.3.00.0100.00416.49
7.2.330.0090.00916.17
7.2.320.0070.01016.37
7.2.310.0080.00816.38
7.2.300.0090.00916.59
7.2.290.0090.00916.52
7.2.260.0060.01514.74
7.2.250.0150.00414.64
7.2.240.0000.01514.73
7.2.230.0090.00615.00
7.2.220.0090.00614.90
7.2.210.0060.00614.96
7.2.200.0120.00414.66
7.2.190.0100.00414.88
7.2.180.0110.00314.96
7.2.170.0030.00814.64
7.2.160.0040.01114.96
7.2.150.0000.01216.86
7.2.140.0040.01216.77
7.2.130.0050.01116.74
7.2.120.0180.00815.98
7.2.110.0150.00416.00
7.2.100.0120.00716.06
7.2.90.0120.00815.97
7.2.80.0140.00615.68
7.2.70.0260.00915.40
7.2.60.0150.01015.36
7.2.50.0140.01015.40
7.2.40.0180.00515.34
7.2.30.0180.00615.44
7.2.20.0160.00915.40
7.2.10.0150.00815.42
7.2.00.0160.00815.42
7.1.330.0040.01115.86
7.1.320.0110.00415.73
7.1.310.0100.00715.57
7.1.300.0040.00715.53
7.1.290.0070.00715.52
7.1.280.0040.00715.66
7.1.270.0030.01315.70
7.1.260.0130.00315.47
7.1.250.0080.00815.72
7.1.240.0150.00914.57
7.1.230.0180.00614.81
7.1.220.0170.00514.90
7.1.210.0160.00714.71
7.1.200.0110.00715.08
7.1.190.0170.00714.71
7.1.180.0110.01114.79
7.1.170.0150.00814.17
7.1.160.0180.00414.20
7.1.150.0160.00814.10
7.1.140.0170.00814.08
7.1.130.0140.00814.08
7.1.120.0190.00713.97
7.1.110.0190.00814.28
7.1.100.0210.00614.08
7.1.90.0190.00514.16
7.1.80.0220.00814.13
7.1.70.0160.00814.02
7.1.60.0270.00724.90
7.1.50.0280.00724.84
7.1.40.0320.00924.95
7.1.30.0290.01124.83
7.1.20.0310.00524.90
7.1.10.0160.00814.08
7.1.00.0190.00314.21
7.0.330.0040.00715.50
7.0.320.0070.00715.40
7.0.310.0100.00715.47
7.0.300.0000.01315.32
7.0.290.0070.01015.41
7.0.280.0040.00815.29
7.0.270.0130.00315.28
7.0.260.0060.00315.34
7.0.250.0070.00715.02
7.0.240.0110.00415.25
7.0.230.0090.00615.54
7.0.220.0060.00615.48
7.0.210.0000.00815.20
7.0.200.0140.00015.04
7.0.190.0000.01515.50
7.0.180.0000.01115.36
7.0.170.0000.01015.36
7.0.160.0030.01115.47
7.0.150.0040.00815.35
7.0.140.0030.00615.43
7.0.130.0060.00615.38
7.0.120.0030.00915.27
7.0.110.0060.00615.38
7.0.100.0030.00715.40
7.0.90.0040.00815.27
7.0.80.0030.00515.32
7.0.70.0080.00415.42
7.0.60.0030.00915.40
7.0.50.0090.00615.36
7.0.40.0100.00713.39
7.0.30.0030.01013.42
7.0.20.0040.00413.39
7.0.10.0100.00713.54
7.0.00.0070.00413.32
5.6.400.0070.01014.48
5.6.390.0030.00614.43
5.6.380.0040.00914.21
5.6.370.0040.01114.04
5.6.360.0100.00014.18
5.6.350.0030.01314.37
5.6.340.0100.00314.32
5.6.330.0030.01014.25
5.6.320.0060.00913.84
5.6.310.0100.00014.48
5.6.300.0070.00714.21
5.6.290.0030.01014.18
5.6.280.0030.01014.27
5.6.270.0120.00314.10
5.6.260.0030.00514.25
5.6.250.0060.01014.22
5.6.240.0030.00614.03
5.6.230.0070.00714.49
5.6.220.0030.00714.36
5.6.210.0070.00714.07
5.6.200.0060.00614.14
5.6.190.0110.00013.91
5.6.180.0030.00614.01
5.6.170.0030.01014.27
5.6.160.0000.01414.14
5.6.150.0060.00914.00
5.6.140.0110.00414.14
5.6.130.0070.00714.27
5.6.120.0060.00314.24
5.6.110.0090.00614.23
5.6.100.0040.00814.30
5.6.90.0110.00313.96
5.6.80.0040.01214.26
5.6.70.0060.00314.41
5.6.60.0040.01114.36
5.6.50.0030.00914.23
5.6.40.0040.00414.32
5.6.30.0070.00713.86
5.6.20.0000.01114.08
5.6.10.0060.00614.02
5.6.00.0070.00413.99

preferences:
58.17 ms | 406 KiB | 5 Q