3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); error_reporting(-1); ini_set('display_errors', 'On'); $array = [ 'Alex' => [ [ ['event' => 'eventName1'],['event' => 'eventName2'] ], [ ['event' => 'eventName3'],['event' => 'eventName4'] ], [ ['event' => 'eventName5'],['event' => 'eventName6'] ], [ ['event' => 'eventName7'],['event' => 'eventName8'] ], [], [], [] ], 'christoper'=>[ [],[],[],[],[],[],[] ] ]; $output = array_filter($array, function (array $studentDays) { foreach ($studentDays as $day) { if (! empty($day)) { return true; } } return false; }); print_r($output);

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.70.0140.00318.31
8.3.60.0100.01018.31
8.3.50.0100.00618.23
8.3.40.0110.00418.67
8.3.30.0140.00418.71
8.3.20.0000.00821.85
8.3.10.0040.00423.70
8.3.00.0040.00423.48
8.2.190.0160.00016.75
8.2.180.0090.00616.38
8.2.170.0120.00318.67
8.2.160.0140.00022.96
8.2.150.0090.00024.18
8.2.140.0040.00424.66
8.2.130.0080.00020.24
8.2.120.0000.00826.35
8.2.110.0060.00322.11
8.2.100.0060.00618.16
8.2.90.0040.00419.26
8.2.80.0080.00017.97
8.2.70.0000.00817.63
8.2.60.0030.00518.04
8.2.50.0040.00418.07
8.2.40.0030.00518.16
8.2.30.0020.00518.02
8.2.20.0050.00218.08
8.2.10.0030.00619.25
8.2.00.0020.00518.18
8.1.280.0120.00625.92
8.1.270.0000.00818.76
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0090.00020.87
8.1.230.0040.00817.69
8.1.220.0060.00317.78
8.1.210.0050.00318.77
8.1.200.0090.00017.35
8.1.190.0050.00317.35
8.1.180.0040.00419.32
8.1.170.0050.00318.49
8.1.160.0000.00818.92
8.1.150.0070.00018.91
8.1.140.0000.00818.91
8.1.130.0030.00620.03
8.1.120.0040.00417.41
8.1.110.0000.00717.36
8.1.100.0000.00817.53
8.1.90.0020.00517.37
8.1.80.0000.00817.45
8.1.70.0050.00317.45
8.1.60.0000.00817.66
8.1.50.0070.00017.44
8.1.40.0070.00317.39
8.1.30.0030.00917.70
8.1.20.0000.00817.54
8.1.10.0040.00417.37
8.1.00.0000.00817.46
8.0.300.0000.01118.77
8.0.290.0040.00416.75
8.0.280.0030.00318.33
8.0.270.0070.00017.18
8.0.260.0050.00318.47
8.0.250.0000.00716.96
8.0.240.0030.00516.96
8.0.230.0000.00816.98
8.0.220.0030.00316.79
8.0.210.0000.00716.79
8.0.200.0070.00016.93
8.0.190.0000.00716.88
8.0.180.0000.00816.87
8.0.170.0080.00316.91
8.0.160.0000.00716.88
8.0.150.0030.00516.87
8.0.140.0000.00816.70
8.0.130.0050.00013.42
8.0.120.0040.00416.75
8.0.110.0070.00016.86
8.0.100.0000.00716.93
8.0.90.0050.00316.87
8.0.80.0060.01416.88
8.0.70.0000.00816.97
8.0.60.0040.00416.97
8.0.50.0070.00016.69
8.0.30.0090.00917.09
8.0.20.0110.00817.40
8.0.10.0000.00717.05
8.0.00.0070.01116.83
7.4.330.0000.00615.55
7.4.320.0030.00316.38
7.4.300.0060.00016.60
7.4.290.0100.00016.62
7.4.280.0040.00416.61
7.4.270.0080.00016.54
7.4.260.0000.00716.59
7.4.250.0070.00016.50
7.4.240.0000.00716.46
7.4.230.0000.00816.73
7.4.220.0040.00416.48
7.4.210.0060.01016.54
7.4.200.0040.00416.71
7.4.160.0120.00516.55
7.4.140.0110.00817.86
7.4.130.0120.00616.48
7.4.120.0070.01016.50
7.4.110.0060.01216.39
7.4.100.0160.00716.41
7.4.90.0160.00016.54
7.4.80.0070.01019.39
7.4.70.0120.00816.43
7.4.60.0080.00816.52
7.4.50.0000.01016.41
7.4.40.0110.01216.22
7.4.10.0070.01015.07
7.4.00.0060.01014.95
7.3.330.0030.00513.08
7.3.320.0050.00013.17
7.3.310.0030.00316.37
7.3.300.0060.00016.32
7.3.290.0000.00716.27
7.3.280.0090.01216.27
7.3.260.0120.00816.40
7.3.240.0100.00816.49
7.3.230.0160.00816.54
7.3.210.0000.01916.52
7.3.200.0130.01016.53
7.3.190.0160.00616.20
7.3.180.0060.01016.57
7.3.170.0160.00316.64
7.3.160.0150.00316.56
7.3.130.0090.00914.52
7.3.120.0050.01214.66
7.3.110.0090.01014.87
7.3.100.0080.00914.76
7.3.90.0080.00514.95
7.3.80.0080.00514.80
7.3.70.0050.01014.78
7.3.60.0020.01314.87
7.3.50.0090.00514.72
7.3.40.0060.01014.67
7.3.30.0090.00514.86
7.3.20.0100.00316.58
7.3.10.0210.00516.16
7.3.00.0220.00416.09
7.2.330.0100.01116.64
7.2.320.0080.00816.53
7.2.310.0070.01116.86
7.2.300.0070.01016.64
7.2.290.0110.00616.79
7.2.260.0070.01014.78
7.2.250.0090.00914.88
7.2.240.0030.01315.26
7.2.230.0090.00614.88
7.2.220.0100.00715.13
7.2.210.0050.00715.05
7.2.200.0090.00215.07
7.2.190.0050.00715.14
7.2.180.0100.00614.94
7.2.170.0030.00914.99
7.2.160.0080.00714.91
7.2.150.0100.00716.97
7.2.140.0020.01216.77
7.2.130.0230.00716.29
7.2.120.0210.00716.21
7.2.110.0220.00716.29
7.2.100.0180.01016.29
7.2.90.0160.01016.35
7.2.80.0180.01016.29
7.2.70.0140.00916.35
7.2.60.0220.01116.27
7.2.50.0170.00916.43
7.2.40.0200.00216.30
7.2.30.0170.00716.29
7.2.20.0230.00816.38
7.2.10.0200.00416.31
7.2.00.0190.00616.32
7.1.330.0000.01215.75
7.1.320.0060.01015.59
7.1.310.0050.00915.69
7.1.300.0080.00315.62
7.1.290.0050.01015.71
7.1.280.0060.00815.84
7.1.270.0090.00415.48
7.1.260.0050.01015.84
7.1.250.0160.00815.19
7.1.240.0070.00515.79
7.1.230.0030.01115.77
7.1.220.0060.00615.61
7.1.210.0090.00815.74
7.1.200.0090.00715.50
7.1.190.0070.00715.78
7.1.180.0040.00915.83
7.1.170.0080.00815.86
7.1.160.0000.01215.74
7.1.150.0060.00815.68
7.1.140.0020.01215.80
7.1.130.0050.00815.71
7.1.120.0060.00715.68
7.1.110.0030.01015.67
7.1.100.0030.01215.70
7.1.90.0070.00715.63
7.1.80.0050.00915.73
7.1.70.0040.00715.90
7.1.60.0030.01015.78
7.1.50.0080.00815.80
7.1.40.0030.01115.80
7.1.30.0050.00715.65
7.1.20.0030.01115.70
7.1.10.0030.01215.64
7.1.00.0020.01215.81

preferences:
51.64 ms | 401 KiB | 5 Q