3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = [ 'a' => [], 'b' => ['total' => ['column' => '1']], 'c' => ['total' => ['column' => '2']], ]; function get_total($input) { foreach ($input as $v) { yeild (isset($v['total']) ? $v : null); } } var_dump(get_total($test));

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.0110.00616.62
8.3.50.0070.01418.05
8.3.40.0070.01318.85
8.3.30.0100.00618.65
8.3.20.0070.00021.88
8.3.10.0080.00023.53
8.3.00.0040.00419.79
8.2.180.0140.00718.38
8.2.170.0040.01122.96
8.2.160.0100.00320.39
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0000.00720.38
8.2.120.0040.00426.35
8.2.110.0090.00022.13
8.2.100.0070.00417.84
8.2.90.0040.00417.96
8.2.80.0060.00317.97
8.2.70.0050.00317.48
8.2.60.0050.00217.93
8.2.50.0040.00418.10
8.2.40.0000.00920.28
8.2.30.0040.00419.25
8.2.20.0040.00418.12
8.2.10.0040.00418.07
8.2.00.0000.00717.99
8.1.280.0090.00625.92
8.1.270.0040.00420.73
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0070.01022.20
8.1.230.0090.00320.97
8.1.220.0030.00517.77
8.1.210.0030.00618.83
8.1.200.0080.00317.35
8.1.190.0040.00417.36
8.1.180.0040.00418.10
8.1.170.0000.00818.49
8.1.160.0000.00718.91
8.1.150.0070.00018.87
8.1.140.0040.00419.49
8.1.130.0030.00518.75
8.1.120.0040.00417.33
8.1.110.0080.00017.34
8.1.100.0000.00717.37
8.1.90.0080.00017.50
8.1.80.0000.00817.46
8.1.70.0000.00717.38
8.1.60.0000.00817.48
8.1.50.0030.00617.47
8.1.40.0030.00617.41
8.1.30.0040.00417.57
8.1.20.0040.00417.60
8.1.10.0040.00417.56
8.1.00.0030.00917.51
8.0.300.0030.00319.98
8.0.290.0000.00816.75
8.0.280.0000.00718.31
8.0.270.0000.00717.25
8.0.260.0030.00319.00
8.0.250.0080.00016.92
8.0.240.0000.00816.99
8.0.230.0040.00417.00
8.0.220.0040.00416.97
8.0.210.0040.00416.80
8.0.200.0030.00317.01
8.0.190.0000.00916.92
8.0.180.0000.00717.00
8.0.170.0070.00016.92
8.0.160.0000.00816.92
8.0.150.0000.00816.91
8.0.140.0000.00816.90
8.0.130.0000.00613.38
8.0.120.0000.00916.95
8.0.110.0000.00717.00
8.0.100.0070.00016.83
8.0.90.0030.00317.06
8.0.80.0100.01316.83
8.0.70.0050.00216.77
8.0.60.0000.00816.77
8.0.50.0000.00716.95
8.0.30.0090.00917.18
8.0.20.0090.01017.40
8.0.10.0000.00717.00
8.0.00.0120.00816.97
7.4.330.0050.00015.55
7.4.320.0000.00616.50
7.4.300.0000.00616.63
7.4.290.0030.00316.41
7.4.280.0030.00616.48
7.4.270.0070.00716.36
7.4.260.0030.00316.58
7.4.250.0000.00716.36
7.4.240.0070.00016.61
7.4.230.0000.00716.40
7.4.220.0120.00616.66
7.4.210.0040.01116.70
7.4.200.0030.00316.46
7.4.160.0030.01616.64
7.4.150.0130.01317.40
7.4.140.0100.01017.86
7.4.130.0100.01016.50
7.4.120.0140.01016.53
7.4.110.0130.00616.55
7.4.100.0180.00516.67
7.4.90.0000.01816.73
7.4.80.0120.00619.39
7.4.70.0050.01016.58
7.4.60.0150.00016.49
7.4.50.0000.01716.46
7.4.40.0110.00616.53
7.4.30.0070.01016.53
7.4.00.0130.00314.71
7.3.330.0000.00613.44
7.3.320.0030.00313.39
7.3.310.0040.00416.46
7.3.300.0030.00316.31
7.3.290.0050.01316.39
7.3.280.0080.00816.32
7.3.270.0070.01017.40
7.3.260.0050.01516.64
7.3.250.0160.00316.42
7.3.240.0040.01316.41
7.3.230.0070.01016.46
7.3.210.0040.01116.53
7.3.200.0110.00616.64
7.3.190.0090.00916.55
7.3.180.0110.01116.44
7.3.170.0060.01116.56
7.3.160.0090.00616.41
7.2.330.0030.01516.36
7.2.320.0090.01416.79
7.2.310.0120.00616.66
7.2.300.0090.00916.46
7.2.290.0120.00316.63
7.2.60.0000.01216.92
7.2.00.0080.00319.46
7.1.200.0000.01115.79
7.1.70.0060.00617.15
7.1.60.1800.01333.00
7.1.50.1230.02032.88
7.1.40.0700.01332.50
7.1.30.0930.01032.49
7.1.20.1100.01332.52
7.1.10.0700.01314.54
7.1.00.0730.01314.51
7.0.200.2200.00714.73
7.0.190.1300.01314.73
7.0.180.0700.01014.30
7.0.170.1030.01714.33
7.0.160.1030.01714.34
7.0.150.0930.01014.31
7.0.140.0730.01314.54
7.0.130.1030.01714.54
7.0.120.0900.01314.60
7.0.110.1030.00714.39
7.0.100.0530.01314.42
7.0.90.0800.00714.42
7.0.80.0600.00714.47
7.0.70.0930.01014.47
7.0.60.0470.01314.36
7.0.50.0600.00314.67
7.0.40.0600.01314.78
7.0.30.0530.01014.52
7.0.20.1230.02014.57
7.0.10.0700.01714.73
7.0.00.0670.02014.50

preferences:
63.6 ms | 400 KiB | 5 Q