3v4l.org

run code in 300+ PHP versions simultaneously
<?php $q_list = array ( 0 => array ( 'id' => '2', 'subject_id' => '1', 'question' => 'Question No One', 'recordstatus' => '1', ), 1 => array ( 'id' => '3', 'subject_id' => '1', 'question' => 'Question No Two', 'recordstatus' => '1', ), 2 => array ( 'id' => '4', 'subject_id' => '1', 'question' => 'Question No Three', 'recordstatus' => '1', ), ); foreach($q_list as $q){ $res[$q['subject_id']][] = $q; } var_dump($res);

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.0030.01716.75
8.3.60.0180.00418.31
8.3.50.0140.01017.98
8.3.40.0040.01118.83
8.3.30.0100.00618.57
8.3.20.0040.00421.87
8.3.10.0080.00023.66
8.3.00.0120.00323.33
8.2.190.0110.00420.05
8.2.180.0100.01318.41
8.2.170.0100.01022.96
8.2.160.0040.01120.35
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00418.03
8.2.120.0070.01126.35
8.2.110.0090.00022.20
8.2.100.0040.00817.91
8.2.90.0000.00817.88
8.2.80.0040.00417.97
8.2.70.0070.00418.05
8.2.60.0050.00318.16
8.2.50.0000.00818.10
8.2.40.0080.00019.27
8.2.30.0040.00419.21
8.2.20.0040.00418.11
8.2.10.0020.00519.16
8.2.00.0040.00419.32
8.1.280.0100.01025.92
8.1.270.0090.00319.01
8.1.260.0050.00326.35
8.1.250.0000.00728.09
8.1.240.0060.00318.59
8.1.230.0100.00019.07
8.1.220.0000.00917.74
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0000.00817.25
8.1.180.0000.00818.10
8.1.170.0050.00318.70
8.1.160.0040.00418.78
8.1.150.0000.00718.90
8.1.140.0000.00722.18
8.1.130.0000.00720.03
8.1.120.0040.00417.31
8.1.110.0000.00817.45
8.1.100.0040.00417.41
8.1.90.0000.01017.34
8.1.80.0040.00417.35
8.1.70.0030.00517.33
8.1.60.0000.00917.59
8.1.50.0070.00017.41
8.1.40.0030.00617.52
8.1.30.0040.00717.65
8.1.20.0040.00417.48
8.1.10.0040.00417.36
8.1.00.0040.00417.32
8.0.300.0040.00418.77
8.0.290.0070.00016.75
8.0.280.0030.00318.39
8.0.270.0080.00016.73
8.0.260.0040.00418.40
8.0.250.0000.00816.98
8.0.240.0030.00316.97
8.0.230.0070.00016.83
8.0.220.0060.00316.88
8.0.210.0040.00416.75
8.0.200.0040.00416.86
8.0.190.0000.00716.96
8.0.180.0030.00516.93
8.0.170.0080.00016.77
8.0.160.0040.00416.83
8.0.150.0000.00716.73
8.0.140.0070.00016.70
8.0.130.0000.00613.32
8.0.120.0050.00216.69
8.0.110.0040.00416.77
8.0.100.0040.00416.75
8.0.90.0050.00216.85
8.0.80.0030.00916.90
8.0.70.0050.00316.78
8.0.60.0050.00216.91
8.0.50.0050.00216.80
8.0.30.0060.01017.00
8.0.20.0080.00816.91
8.0.10.0040.00416.84
8.0.00.0070.01116.89
7.4.330.0030.00316.77
7.4.320.0000.00716.52
7.4.300.0000.00616.59
7.4.290.0030.00316.43
7.4.280.0030.00316.54
7.4.270.0000.00716.61
7.4.260.0030.00316.50
7.4.250.0040.00416.60
7.4.240.0030.00316.67
7.4.230.0020.00516.57
7.4.220.0000.00716.54
7.4.210.0050.00816.57
7.4.200.0050.00216.48
7.4.190.0060.00016.68
7.4.180.0060.00016.76
7.4.160.0060.00916.47
7.4.150.0070.00016.41
7.4.140.0100.00817.64
7.4.130.0040.00916.54
7.4.120.0040.00916.56
7.4.110.0050.01016.53
7.4.100.0090.00816.47
7.4.90.0110.00716.37
7.4.80.0070.00917.50
7.4.70.0070.00816.39
7.4.60.0060.00916.47
7.4.50.0020.01116.55
7.4.40.0060.00916.41
7.4.30.0070.00716.45
7.4.20.0040.01116.34
7.4.10.0070.00816.59
7.4.00.0060.00915.96
7.3.330.0000.00513.07
7.3.320.0000.00713.07
7.3.310.0060.00016.29
7.3.300.0020.00516.27
7.3.290.0020.00516.18
7.3.280.0080.00716.31
7.3.270.0000.00616.19
7.3.260.0110.00616.38
7.3.250.0000.00616.27
7.3.240.0110.00416.43
7.3.230.0080.00516.43
7.3.220.0050.01016.32
7.3.210.0090.00716.43
7.3.200.0070.00716.40
7.3.190.0050.01016.40
7.3.180.0060.00916.35
7.3.170.0120.00716.40
7.3.160.0070.01716.43
7.3.150.0140.00116.31
7.3.140.0060.00816.28
7.3.130.0090.00416.45
7.3.120.0090.00715.87
7.3.110.0040.01115.73
7.3.100.0060.00915.64
7.3.90.0130.00215.86
7.3.80.0060.01015.86
7.3.70.0080.00815.86
7.3.60.0040.01015.83
7.3.50.0060.00815.81
7.3.40.0080.00615.84
7.3.30.0030.00915.73
7.3.20.0050.00917.14
7.3.10.0090.00517.07
7.3.00.0190.00816.29
7.2.340.0000.00716.42
7.2.330.0100.00516.50
7.2.320.0090.00816.51
7.2.310.0080.00716.45
7.2.300.0060.01016.58
7.2.290.0120.00616.43
7.2.280.0050.00916.41
7.2.270.0080.00616.51
7.2.260.0050.01016.41
7.2.250.0120.00216.54
7.2.240.0090.00616.02
7.2.230.0090.00716.03
7.2.220.0110.00616.05
7.2.210.0080.00816.04
7.2.200.0050.01016.12
7.2.190.0050.00916.10
7.2.180.0080.00816.02
7.2.170.0060.00916.11
7.2.160.0060.00815.85
7.2.150.0070.00717.13
7.2.140.0070.00717.33
7.2.130.0210.00816.86
7.2.120.0120.00816.77
7.2.110.0110.00916.71
7.2.100.0210.00616.72
7.2.90.0160.00916.76
7.2.80.0160.00816.62
7.2.70.0190.01016.78
7.2.60.0190.00716.74
7.2.50.0160.00816.75
7.2.40.0270.00416.79
7.2.30.0230.00716.85
7.2.20.0230.00816.76
7.2.10.0180.00916.78
7.2.00.0190.00616.87
7.1.330.0040.01116.25
7.1.320.0180.00716.24
7.1.310.0070.00916.30
7.1.300.0100.00916.27
7.1.290.0120.00616.24
7.1.280.0070.01116.25
7.1.270.0130.00516.15
7.1.260.0070.01116.20
7.1.250.0170.00615.59
7.1.240.0080.01016.42
7.1.230.0130.00816.42
7.1.220.0150.00316.49
7.1.210.0140.00516.45
7.1.200.0150.00416.42
7.1.190.0150.00816.40
7.1.180.0110.00816.34
7.1.170.0140.00716.36
7.1.160.0100.01116.39
7.1.150.0160.00816.37
7.1.140.0180.00516.36
7.1.130.0250.00916.46
7.1.120.0130.00716.41
7.1.110.0120.00916.42
7.1.100.0160.00516.38
7.1.90.0130.00716.49
7.1.80.0110.00716.50
7.1.70.0220.00216.31
7.1.60.0100.00816.57
7.1.50.0140.00416.41
7.1.40.0110.00716.45
7.1.30.0120.00616.45
7.1.20.0120.00816.47
7.1.10.0090.00816.35
7.1.00.0110.00516.28
7.0.330.0190.00615.15
7.0.320.0180.00816.10
7.0.310.0170.00416.12
7.0.300.0170.00816.17
7.0.290.0130.00516.08
7.0.280.0110.00816.19
7.0.270.0140.00716.09
7.0.260.0130.00616.20
7.0.250.0120.00816.26
7.0.240.0090.00916.20
7.0.230.0100.01016.31
7.0.220.0160.00316.09
7.0.210.0120.00716.14
7.0.200.0100.01016.10
7.0.190.0100.00816.19
7.0.180.0150.00716.04
7.0.170.0180.00716.15
7.0.160.0080.00516.15
7.0.150.0070.00716.02
7.0.140.0080.00516.06
7.0.130.0130.00316.17
7.0.120.0100.00316.11
7.0.110.0040.00916.05
7.0.100.0070.00716.24
7.0.90.0090.00616.20
7.0.80.0060.00815.98
7.0.70.0090.00616.11
7.0.60.0130.00316.10
7.0.50.0050.00816.04
7.0.40.0140.00216.01
7.0.30.0090.00816.12
7.0.20.0070.01215.92
7.0.10.0080.00616.05
7.0.00.0040.01116.05
5.6.400.0150.00416.00
5.6.390.0130.00716.06
5.6.380.0130.00315.41
5.6.370.0120.00916.01
5.6.360.0150.00415.98
5.6.350.0100.00915.83
5.6.340.0100.01115.95
5.6.330.0110.01215.96
5.6.320.0120.00915.79
5.6.310.0090.01015.98
5.6.300.0080.00615.94
5.6.290.0030.01115.98
5.6.280.0080.00815.93
5.6.270.0060.00815.85
5.6.260.0120.00515.98
5.6.250.0040.01015.90
5.6.240.0070.00615.78
5.6.230.0050.01015.96
5.6.220.0080.00615.99
5.6.210.0110.00515.96
5.6.200.0030.01315.89
5.6.190.0110.00515.98
5.6.180.0110.00615.87
5.6.170.0050.01015.95
5.6.160.0060.01116.08
5.6.150.0090.00715.95
5.6.140.0140.00615.94
5.6.130.0110.01015.85
5.6.120.0100.00916.04
5.6.110.0130.00815.91
5.6.100.0150.00616.01
5.6.90.0140.00615.91
5.6.80.0110.00615.84
5.6.70.0140.00715.81
5.6.60.0160.00615.82
5.6.50.0100.00615.70
5.6.40.0080.01115.86
5.6.30.0120.00815.96
5.6.20.0110.00815.86
5.6.10.0120.00715.76
5.6.00.0120.00615.66

preferences:
63.85 ms | 401 KiB | 5 Q