3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = <<<JSON [{ "updatedDate": null, "active": true, "id": 80, "lessonName": "HZİ 413 Language in Use", "educationDegree": "Lisans", "academicYear": "2013-2014", "language": "İngilizce", "lessonHour": 4, "addedDate": "2014-02-21T19:54:23+0000" }, { "updatedDate": null, "active": true, "id": 81, "lessonName": "HZİ 411 English in Context I", "educationDegree": "Lisans", "academicYear": "2013-2014", "language": "İngilizce", "lessonHour": 8, "addedDate": "2014-02-21T19:53:47+0000" }, { "updatedDate": null, "active": true, "id": 82, "lessonName": "HZİ 512 English in Context II ", "educationDegree": "Lisans", "academicYear": "2014-2015", "language": "İngilizce", "lessonHour": 12, "addedDate": "2014-02-21T19:52:44+0000" }] JSON; $input = json_decode($json, true); $groups = []; $groupBy = 'academicYear'; foreach ($input as $element) { if (!array_key_exists($element[$groupBy], $groups)) { $groups[$element[$groupBy]] = []; } $groups[$element[$groupBy]][] = $element; } print_r($groups);

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.0040.01116.38
8.3.50.0100.01122.04
8.3.40.0100.00718.79
8.3.30.0080.00618.84
8.3.20.0090.00919.11
8.3.10.0040.00423.53
8.3.00.0120.00322.35
8.2.180.0050.00925.92
8.2.170.0040.01122.96
8.2.160.0070.00720.48
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00422.25
8.2.120.0000.00726.35
8.2.110.0030.00620.33
8.2.100.0100.00317.79
8.2.90.0080.00019.39
8.2.80.0080.00017.97
8.2.70.0000.00817.63
8.2.60.0080.00018.05
8.2.50.0080.00018.10
8.2.40.0000.00922.24
8.2.30.0040.00419.17
8.2.20.0070.00017.77
8.2.10.0030.00718.00
8.2.00.0000.00818.12
8.1.280.0140.00425.92
8.1.270.0040.00424.02
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0000.01120.99
8.1.230.0080.00317.42
8.1.220.0040.00417.79
8.1.210.0040.00418.77
8.1.200.0030.00617.48
8.1.190.0000.00817.38
8.1.180.0040.00418.10
8.1.170.0060.00318.57
8.1.160.0030.00322.05
8.1.150.0040.00418.77
8.1.140.0040.00419.54
8.1.130.0000.00717.58
8.1.120.0040.00417.38
8.1.110.0000.00817.52
8.1.100.0040.00417.37
8.1.90.0000.00717.34
8.1.80.0000.00717.35
8.1.70.0030.00617.50
8.1.60.0030.00517.63
8.1.50.0000.00817.50
8.1.40.0060.00317.42
8.1.30.0000.00817.68
8.1.20.0050.00217.65
8.1.10.0030.00517.59
8.1.00.0040.00417.44
8.0.300.0060.00318.77
8.0.290.0000.00716.75
8.0.280.0000.00718.44
8.0.270.0000.00717.25
8.0.260.0000.01017.30
8.0.250.0030.00317.00
8.0.240.0000.00716.91
8.0.230.0030.00316.91
8.0.220.0090.00016.83
8.0.210.0000.00716.95
8.0.200.0000.00616.90
8.0.190.0060.00316.98
8.0.180.0090.00016.87
8.0.170.0000.00716.98
8.0.160.0030.00316.90
8.0.150.0030.00616.98
8.0.140.0000.00716.81
8.0.130.0070.00013.39
8.0.120.0050.00216.90
8.0.110.0080.00016.94
8.0.100.0050.00316.80
8.0.90.0080.00017.03
8.0.80.0100.01017.02
8.0.70.0040.00416.86
8.0.60.0040.00416.84
8.0.50.0080.00017.00
8.0.30.0070.01517.10
8.0.20.0120.00917.40
8.0.10.0040.00417.14
8.0.00.0030.01716.64
7.4.330.0050.00015.08
7.4.320.0030.00316.49
7.4.300.0070.00016.50
7.4.290.0030.00316.45
7.4.280.0050.00216.59
7.4.270.0040.00316.53
7.4.260.0000.00716.41
7.4.250.0000.00716.57
7.4.240.0050.00316.52
7.4.230.0030.00316.52
7.4.220.0070.01116.58
7.4.210.0180.00016.53
7.4.200.0070.00016.72
7.4.160.0080.00816.51
7.4.150.0090.00917.40
7.4.140.0090.01217.86
7.4.130.0180.00516.46
7.4.120.0110.00616.55
7.4.110.0070.01116.38
7.4.100.0120.00616.72
7.4.90.0200.00716.44
7.4.80.0120.00619.39
7.4.70.0090.00916.40
7.4.60.0000.01616.41
7.4.50.0030.01216.28
7.4.40.0070.01316.51
7.4.30.0140.00316.60
7.4.10.0080.01115.81
7.4.00.0030.01415.46
7.3.330.0020.00213.23
7.3.320.0000.00613.18
7.3.310.0060.00316.42
7.3.300.0070.00016.43
7.3.290.0080.00816.43
7.3.280.0070.00916.41
7.3.270.0040.01317.40
7.3.260.0100.00916.45
7.3.250.0100.00616.37
7.3.240.0080.00916.54
7.3.230.0100.00716.40
7.3.210.0000.01816.62
7.3.200.0090.00916.72
7.3.190.0060.00916.50
7.3.180.0070.01016.59
7.3.170.0080.00816.50
7.3.160.0120.00916.43
7.3.130.0090.00915.74
7.3.120.0060.01215.47
7.3.110.0080.01015.44
7.3.100.0040.00915.41
7.3.90.0060.01115.48
7.3.80.0040.00815.33
7.3.70.0070.00615.36
7.3.60.0050.00715.25
7.3.50.0070.00515.46
7.3.40.0060.00615.33
7.3.30.0070.00715.36
7.3.20.0090.00317.26
7.3.10.0050.00717.21
7.3.00.0020.01117.24
7.2.330.0130.00616.79
7.2.320.0060.01316.86
7.2.310.0080.00816.65
7.2.300.0140.00316.63
7.2.290.0060.01616.81
7.2.260.0050.01215.86
7.2.250.0080.01015.55
7.2.240.0070.00915.58
7.2.230.0070.00915.53
7.2.220.0060.00715.64
7.2.210.0070.00615.71
7.2.200.0060.00915.69
7.2.190.0060.01015.55
7.2.180.0070.00715.58
7.2.170.0040.01115.65
7.2.160.0030.01115.92
7.2.150.0050.00717.86
7.2.140.0040.00917.62
7.2.130.0020.00817.84
7.2.120.0020.01217.77
7.2.110.0050.00817.71
7.2.100.0080.00817.73
7.2.90.0080.00617.70
7.2.80.0050.00817.66
7.2.70.0070.00717.74
7.2.60.0100.00617.40
7.2.50.0050.01017.58
7.2.40.0030.01017.81
7.2.30.0070.00717.74
7.2.20.0030.01017.68
7.2.10.0050.00717.52
7.2.00.0080.00918.19
7.1.330.0060.00916.24
7.1.320.0030.01016.40
7.1.310.0060.00616.42
7.1.300.0060.00516.33
7.1.290.0050.00916.32
7.1.280.0020.01316.43
7.1.270.0080.00716.29
7.1.260.0070.00516.31
7.1.250.0050.00716.63
7.1.240.0020.01216.55
7.1.230.0080.00516.49
7.1.220.0080.00716.37
7.1.210.0060.01016.61
7.1.200.0060.00816.29
7.1.190.0120.00516.67
7.1.180.0080.00716.60
7.1.170.0050.01216.51
7.1.160.0040.01016.47
7.1.150.0080.00516.54
7.1.140.0070.00416.71
7.1.130.0070.00616.62
7.1.120.0050.00916.56
7.1.110.0020.01316.65
7.1.100.0060.01116.66
7.1.90.0020.01216.68
7.1.80.0030.01216.76
7.1.70.0030.00816.79
7.1.60.0010.01116.79
7.1.50.0070.00316.59
7.1.40.0000.01116.63
7.1.30.0050.00816.64
7.1.20.0060.00716.46
7.1.10.0090.00516.56
7.1.00.0060.02918.54
7.0.330.0090.00416.08
7.0.320.0090.00516.01
7.0.310.0110.00316.30
7.0.300.0100.00516.14
7.0.290.0070.01016.11
7.0.280.0040.00816.26
7.0.270.0050.00916.10
7.0.260.0030.01116.24
7.0.250.0080.00916.23
7.0.240.0080.00716.13
7.0.230.0050.00816.41
7.0.220.0030.01016.12
7.0.210.0050.01116.24
7.0.200.0070.00916.43
7.0.190.0090.00616.26
7.0.180.0060.01016.08
7.0.170.0110.00316.30
7.0.160.0120.00216.25
7.0.150.0120.00316.28
7.0.140.0020.01216.38
7.0.130.0060.00916.29
7.0.120.0060.01016.35
7.0.110.0100.00516.23
7.0.100.0390.02517.55
7.0.90.0070.03217.42
7.0.80.0090.02317.40
7.0.70.0100.02417.48
7.0.60.0120.02117.51
7.0.50.0180.02317.63
7.0.40.0090.02516.18
7.0.30.0090.02816.25
7.0.20.0130.02116.33
7.0.10.0060.03016.33
7.0.00.0110.02516.22
5.6.400.0060.01114.95
5.6.390.0050.01115.13
5.6.380.0090.00715.38
5.6.370.0050.01015.45
5.6.360.0070.01015.15
5.6.350.0110.00815.49
5.6.340.0060.01314.99
5.6.330.0060.01415.30
5.6.320.0110.00615.43
5.6.310.0050.00915.19
5.6.300.0060.00715.36
5.6.290.0020.01415.43
5.6.280.0120.00515.23
5.6.270.0080.00815.24
5.6.260.0040.00915.35
5.6.250.0130.02117.13
5.6.240.0120.02216.92
5.6.230.0100.02416.91
5.6.220.0110.02416.98
5.6.210.0090.02317.11
5.6.200.0050.03017.16
5.6.190.0050.02717.20
5.6.180.0110.02117.13
5.6.170.0080.02617.16
5.6.160.0110.02217.25
5.6.150.0120.01817.11
5.6.140.0080.02417.18
5.6.130.0080.02517.29
5.6.120.0110.02217.17
5.6.110.0060.02717.19
5.6.100.0080.02517.14
5.6.90.0130.01917.09
5.6.80.0050.02416.86
5.6.70.0080.02616.88
5.6.60.0070.02616.85
5.6.50.0080.02416.92
5.6.40.0100.02016.89
5.6.30.0050.02616.87
5.6.20.0080.02316.96
5.6.10.0090.02416.89
5.6.00.0110.02017.00

preferences:
51.09 ms | 401 KiB | 5 Q