3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sections = array ( 1 => array ( 'titre' => array ( 1 => array ( 'titreSection' => 'Section1' ), ), 'contenu' => array ( 1 => array ( 'titreLesson' => 'Lesson1', 'lessonContent' => 'Contenu1' ), 2 => array ( 'titreLesson' => 'Lesson2', 'lessonContent' => 'Contenu2' ) ), ), 2 => array ( 'titre' => array ( 1 => array ( 'titreSection' => 'Section2' ), ), 'contenu' => array ( 3 => array ( 'titreLesson' => 'Lesson3', 'lessonContent' => 'Contenu3' ), 4 => array ( 'titreLesson' => 'Lesson4', 'lessonContent' => 'Contenu4' ) ) ) ); foreach ($sections as $section) { echo "<h2>{$section['titre'][1]['titreSection']}</h2>\n"; foreach ($section['contenu'] as $lesson) { echo "<h3>{$lesson['titreLesson']}</h3>\n"; echo "<p>{$lesson['lessonContent']}</p>\n"; } }

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.0090.00618.43
8.3.50.0130.00618.19
8.3.40.0000.01518.79
8.3.30.0150.00018.67
8.3.20.0000.00819.15
8.3.10.0040.00421.73
8.3.00.0050.00320.85
8.2.180.0090.00918.29
8.2.170.0110.00422.96
8.2.160.0090.00622.10
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0090.00026.16
8.2.120.0000.00819.36
8.2.110.0030.00620.47
8.2.100.0080.00317.72
8.2.90.0000.00917.75
8.2.80.0030.00618.77
8.2.70.0030.00617.50
8.2.60.0000.00818.05
8.2.50.0110.00018.07
8.2.40.0060.00318.16
8.2.30.0050.00318.19
8.2.20.0040.00418.30
8.2.10.0040.00417.97
8.2.00.0040.00418.27
8.1.280.0060.01025.92
8.1.270.0000.00822.07
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0100.00022.13
8.1.230.0130.00020.85
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0000.00917.35
8.1.190.0030.00617.23
8.1.180.0000.00818.10
8.1.170.0040.00418.64
8.1.160.0000.00818.94
8.1.150.0040.00418.84
8.1.140.0070.00022.14
8.1.130.0030.00320.09
8.1.120.0000.00717.36
8.1.110.0040.00417.31
8.1.100.0080.00017.44
8.1.90.0030.00317.45
8.1.80.0000.00817.50
8.1.70.0080.00017.48
8.1.60.0040.00417.52
8.1.50.0030.00617.48
8.1.40.0040.00417.42
8.1.30.0000.00817.59
8.1.20.0000.00717.65
8.1.10.0040.00417.49
8.1.00.0000.00817.40
8.0.300.0040.00418.77
8.0.290.0050.00316.88
8.0.280.0030.00318.32
8.0.270.0070.00017.27
8.0.260.0030.00318.37
8.0.250.0000.01116.82
8.0.240.0070.00016.86
8.0.230.0000.00716.82
8.0.220.0040.00416.86
8.0.210.0040.00416.85
8.0.200.0040.00416.81
8.0.190.0070.00016.85
8.0.180.0000.00816.91
8.0.170.0060.00316.81
8.0.160.0000.00716.92
8.0.150.0000.00716.84
8.0.140.0000.00816.82
8.0.130.0000.00613.28
8.0.120.0040.00416.95
8.0.110.0020.00516.71
8.0.100.0070.00016.89
8.0.90.0030.00316.76
8.0.80.0060.01216.86
8.0.70.0000.00716.92
8.0.60.0000.00716.85
8.0.50.0030.00516.67
8.0.30.0120.00717.10
8.0.20.0150.01017.40
8.0.10.0000.00717.03
8.0.00.0100.01116.83
7.4.330.0020.00215.55
7.4.320.0060.00016.63
7.4.300.0000.00616.43
7.4.290.0000.00816.64
7.4.280.0000.00816.55
7.4.270.0060.00616.41
7.4.260.0030.00316.49
7.4.250.0030.00316.55
7.4.240.0050.00316.55
7.4.230.0070.00016.30
7.4.220.0040.00416.48
7.4.210.0080.00816.61
7.4.200.0000.00716.43
7.4.160.0100.00716.52
7.4.140.0080.01117.86
7.4.130.0070.01016.41
7.4.120.0090.00916.59
7.4.110.0150.00416.45
7.4.100.0170.00316.27
7.4.90.0120.00616.44
7.4.80.0070.01119.39
7.4.70.0160.00516.50
7.4.60.0060.01116.35
7.4.50.0060.00916.46
7.4.40.0090.01216.52
7.4.00.0040.01415.02
7.3.330.0050.00013.24
7.3.320.0060.00013.16
7.3.310.0030.00316.28
7.3.300.0030.00316.23
7.3.290.0000.00716.18
7.3.280.0090.00516.38
7.3.260.0140.00616.49
7.3.240.0100.00816.35
7.3.230.0100.00716.55
7.3.210.0060.01116.30
7.3.200.0030.01316.36
7.3.190.0160.00716.50
7.3.180.0090.00616.52
7.3.170.0090.00916.38
7.3.160.0110.00516.23
7.2.330.0060.01716.57
7.2.320.0060.01616.73
7.2.310.0090.00916.80
7.2.300.0060.01116.62
7.2.290.0030.01416.77
7.2.120.0170.00614.65
7.2.110.0220.00014.70
7.2.100.0240.00614.70
7.2.90.0180.00714.98
7.2.80.0190.00614.76
7.2.70.0290.00015.13
7.2.60.0230.00315.27
7.2.50.0230.00315.20
7.2.40.0280.00615.04
7.2.30.0280.00715.37
7.2.20.0130.01015.00
7.2.10.0270.00714.90
7.2.00.0220.00314.86
7.1.240.0240.01013.76
7.1.230.0200.00913.80
7.1.220.0140.01113.96
7.1.210.0320.00313.72
7.1.200.0190.00314.01
7.1.190.0160.00714.13
7.1.180.0150.00613.98
7.1.170.0170.00314.00
7.1.160.0160.00613.88
7.1.150.0190.00614.00
7.1.140.0190.00313.68
7.1.130.0210.00313.88
7.1.120.0910.00714.01
7.1.110.0160.00613.92
7.1.100.0160.00314.06
7.1.90.0150.00614.07
7.1.80.0180.00713.73
7.1.70.0180.00413.84
7.1.60.0220.00413.99
7.1.50.0250.01114.11
7.1.40.0210.00713.74
7.1.30.0350.00314.04
7.1.20.0280.00713.80
7.1.10.0170.00714.06
7.1.00.0140.00714.07
5.6.380.0070.00714.39

preferences:
67.42 ms | 401 KiB | 5 Q