3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ 'status' => [ [ 'type' => 'else' ], ['type' => 'something',] ] ]; $count = array_count_values( array_column(array_column($array, 'status'), 'type') );

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.0130.00918.43
8.3.50.0070.00716.07
8.3.40.0130.00318.52
8.3.30.0070.00718.46
8.3.20.0030.00618.56
8.3.10.0040.00421.73
8.3.00.0040.00421.91
8.2.180.0070.00725.92
8.2.170.0070.01018.89
8.2.160.0120.00318.96
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0030.00519.38
8.2.110.0000.01020.35
8.2.100.0080.00317.72
8.2.90.0000.00817.84
8.2.80.0040.00417.97
8.2.70.0050.00317.80
8.2.60.0040.00418.09
8.2.50.0090.00018.10
8.2.40.0070.00019.00
8.2.30.0040.00419.17
8.2.20.0040.00417.85
8.2.10.0050.00218.21
8.2.00.0040.00417.65
8.1.280.0070.01425.92
8.1.270.0090.00920.28
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00722.34
8.1.230.0090.00320.72
8.1.220.0030.00617.74
8.1.210.0050.00318.78
8.1.200.0090.00017.23
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0070.00418.53
8.1.160.0020.00518.72
8.1.150.0020.00518.87
8.1.140.0040.00420.15
8.1.130.0000.00717.36
8.1.120.0100.00017.32
8.1.110.0040.00417.37
8.1.100.0000.00817.38
8.1.90.0000.00717.29
8.1.80.0040.00417.38
8.1.70.0030.00317.26
8.1.60.0050.00317.46
8.1.50.0000.00817.34
8.1.40.0000.00817.43
8.1.30.0040.00417.57
8.1.20.0070.00017.58
8.1.10.0000.00717.50
8.1.00.0000.00717.25
8.0.300.0040.00419.69
8.0.290.0000.00816.63
8.0.280.0070.00018.27
8.0.270.0030.00317.10
8.0.260.0030.00316.80
8.0.250.0000.00616.82
8.0.240.0040.00416.77
8.0.230.0000.00716.77
8.0.220.0080.00016.68
8.0.210.0000.00716.80
8.0.200.0000.00716.89
8.0.190.0040.00416.83
8.0.180.0040.00416.76
8.0.170.0060.00316.81
8.0.160.0040.00416.90
8.0.150.0040.00416.71
8.0.140.0040.00416.64
8.0.130.0030.00313.25
8.0.120.0040.00416.75
8.0.110.0050.00316.82
8.0.100.0040.00416.61
8.0.90.0000.00816.71
8.0.80.0070.01016.81
8.0.70.0070.00016.64
8.0.60.0000.00716.64
8.0.50.0040.00416.62
8.0.30.0110.00917.01
8.0.20.0050.01517.40
8.0.10.0030.00616.97
8.0.00.0130.00416.63
7.4.330.0050.00015.55
7.4.320.0030.00316.45
7.4.300.0040.00416.42
7.4.290.0030.00316.42
7.4.280.0000.00816.28
7.4.270.0060.00016.43
7.4.260.0030.00316.50
7.4.250.0030.00316.32
7.4.240.0040.00316.51
7.4.230.0000.00616.54
7.4.220.0050.00316.31
7.4.210.0060.00816.53
7.4.200.0040.00416.59
7.4.160.0080.00816.36
7.4.140.0120.00617.86
7.4.130.0060.01016.39
7.4.120.0060.01216.40
7.4.110.0070.01016.34
7.4.100.0060.01216.35
7.4.90.0030.01316.60
7.4.80.0120.00819.39
7.4.70.0030.01316.44
7.4.60.0090.00616.41
7.4.50.0090.00916.08
7.4.40.0080.00916.34
7.4.00.0030.01214.75
7.3.330.0000.00513.04
7.3.320.0050.00013.07
7.3.310.0030.00316.21
7.3.300.0030.00316.16
7.3.290.0070.00016.11
7.3.280.0060.00916.01
7.3.260.0090.00916.11
7.3.240.0060.01016.23
7.3.230.0100.00516.23
7.3.210.0190.00516.27
7.3.200.0060.01316.29
7.3.190.0060.00916.10
7.3.180.0150.00016.35
7.3.170.0060.00916.51
7.3.160.0120.00316.31
7.3.120.0080.00814.89
7.3.110.0060.00614.53
7.3.100.0000.01214.61
7.3.90.0110.00414.78
7.3.80.0030.01214.66
7.3.70.0100.00314.59
7.3.60.0030.01014.28
7.3.50.0090.00614.70
7.3.40.0060.00614.63
7.3.30.0070.00714.69
7.3.20.0030.00916.35
7.3.10.0020.01116.55
7.3.00.0050.00516.34
7.2.330.0030.01316.49
7.2.320.0130.01016.30
7.2.310.0110.01116.51
7.2.300.0110.00716.42
7.2.290.0060.00916.58
7.2.250.0030.01414.86
7.2.240.0060.01314.84
7.2.230.0130.00014.95
7.2.220.0070.00314.79
7.2.210.0000.01614.79
7.2.200.0090.00314.78
7.2.190.0030.01314.87
7.2.180.0060.00614.74
7.2.170.0060.00814.75
7.2.130.0000.01316.84
7.2.120.0000.01116.52
7.2.110.4430.00815.47
7.2.100.3920.01115.58
7.2.90.3800.00915.66
7.2.80.3410.01015.53
7.2.70.2260.00815.42
7.2.60.1010.00915.62
7.2.50.2880.01115.53
7.2.40.3950.00315.91
7.2.30.0060.01015.63
7.2.20.2830.00915.61
7.2.10.0140.01015.33
7.2.00.0090.00615.81
7.1.330.0060.00615.66
7.1.320.0000.01015.33
7.1.310.0040.00415.80
7.1.300.0090.00615.67
7.1.290.0090.00315.59
7.1.280.0130.00315.54
7.1.270.0040.00815.67
7.1.260.0030.01215.42
7.1.250.0000.01015.37
7.1.230.8840.00613.86
7.1.220.7150.01013.89
7.1.210.7130.00313.77
7.1.200.4620.00713.45
7.1.190.0980.00713.77
7.1.180.0150.00813.65
7.1.170.6680.00713.63
7.1.160.6110.00313.55
7.1.150.3690.01313.79
7.1.140.1000.01113.36
7.1.130.0140.00013.18
7.1.120.0100.00713.36
7.1.110.0210.00613.59
7.1.100.0240.00613.25
7.1.90.0190.00613.59
7.1.80.0250.00013.24
7.1.70.0180.01213.80
7.1.60.0460.01131.68
7.1.50.0640.01431.65
7.1.40.0370.01731.42
7.1.30.0320.01131.73
7.1.20.0420.00931.37
7.1.10.0240.00613.69
7.1.00.0210.00713.46
5.6.380.0050.01514.34

preferences:
60.07 ms | 400 KiB | 5 Q