3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sections = [ [ 'sectionwidth' => 525, 'sectionheight' => 500, 'bg' => 'eaeaea', 'sectioncolor' => 'c0c0c0', 'input' => [ [ 'inputtext' => 'test', 'inputwidth' => 505 ], [ 'inputtext' => 'test2', 'inputwidth' => 505 ] ] ], [ 'sectionwidth' => 525, 'sectionheight' => 500, 'bg' => '222222', 'sectioncolor' => 'ffffff', 'input' => [ [ 'inputtext' => 'test3', 'inputwidth' => 505 ], [ 'inputtext' => 'test4', 'inputwidth' => 505 ] ] ], ]; foreach ($sections as $section) { echo '<div style="width: '.$section['sectionwidth'].'px; height: '.$section['sectionheight'].'px; background: #'.$section['bg'].'; color: '.$section['sectioncolor'].'">'; foreach ($section['input'] as $input) { echo '<p style="width: '.$input['inputwidth'].'px;">'.$input['inputtext'].'</p>'; } echo '</div>'; }

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.0070.00718.41
8.3.60.0150.00717.93
8.3.50.0110.00517.37
8.3.40.0110.00418.84
8.3.30.0110.00418.72
8.3.20.0050.00220.38
8.3.10.0040.00420.77
8.3.00.0000.00720.71
8.2.190.0100.01016.58
8.2.180.0120.00618.16
8.2.170.0120.00622.96
8.2.160.0180.00419.32
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00420.43
8.2.110.0070.00320.43
8.2.100.0110.00018.03
8.2.90.0000.00819.22
8.2.80.0030.00518.03
8.2.70.0090.00017.38
8.2.60.0040.00418.05
8.2.50.0000.00918.10
8.2.40.0000.00822.20
8.2.30.0020.00519.30
8.2.20.0000.00818.04
8.2.10.0000.00818.15
8.2.00.0000.00718.06
8.1.280.0130.00725.92
8.1.270.0000.00723.96
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0030.00622.73
8.1.230.0040.00819.09
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0060.00317.35
8.1.190.0000.00817.25
8.1.180.0000.00718.10
8.1.170.0000.00818.64
8.1.160.0000.00719.08
8.1.150.0070.00018.95
8.1.140.0050.00219.59
8.1.130.0000.00718.91
8.1.120.0000.00717.46
8.1.110.0070.00017.44
8.1.100.0040.00417.34
8.1.90.0000.00717.51
8.1.80.0040.00417.50
8.1.70.0000.00717.42
8.1.60.0080.00017.64
8.1.50.0080.00017.52
8.1.40.0030.00517.39
8.1.30.0040.00417.55
8.1.20.0030.00617.72
8.1.10.0000.00717.45
8.1.00.0050.00317.41
8.0.300.0040.00418.77
8.0.290.0060.00316.63
8.0.280.0000.00718.48
8.0.270.0000.00717.13
8.0.260.0060.00019.05
8.0.250.0040.00417.04
8.0.240.0040.00416.87
8.0.230.0000.00717.00
8.0.220.0070.00016.75
8.0.210.0100.00016.77
8.0.200.0000.00816.98
8.0.190.0030.00617.02
8.0.180.0000.00716.91
8.0.170.0090.00016.81
8.0.160.0000.00716.89
8.0.150.0030.00516.77
8.0.140.0090.00016.75
8.0.130.0060.00013.30
8.0.120.0030.00616.80
8.0.110.0000.00816.69
8.0.100.0050.00316.86
8.0.90.0050.00316.95
8.0.80.0120.00416.93
8.0.70.0040.00316.91
8.0.60.0070.00016.93
8.0.50.0000.00716.71
8.0.30.0130.00617.06
8.0.20.0100.01017.41
8.0.10.0030.00616.96
8.0.00.0160.00716.64
7.4.330.0030.00315.55
7.4.320.0000.00616.59
7.4.300.0030.00316.41
7.4.290.0080.00316.63
7.4.280.0070.00016.51
7.4.270.0000.00816.40
7.4.260.0040.00816.38
7.4.250.0040.00416.52
7.4.240.0000.00716.50
7.4.230.0030.00316.69
7.4.220.0120.00816.58
7.4.210.0090.00916.51
7.4.200.0070.00016.31
7.4.160.0090.00616.48
7.4.150.0140.00517.40
7.4.140.0090.00817.86
7.4.130.0060.01116.60
7.4.120.0100.00916.37
7.4.110.0090.00916.23
7.4.100.0070.01116.66
7.4.90.0100.01116.47
7.4.80.0090.00919.39
7.4.70.0090.00816.47
7.4.60.0210.00516.48
7.4.50.0100.00316.64
7.4.40.0090.00916.42
7.4.30.0150.00616.44
7.4.10.0070.01414.73
7.4.00.0060.01114.85
7.3.330.0030.00313.14
7.3.320.0060.00013.13
7.3.310.0000.00716.42
7.3.300.0030.00316.33
7.3.290.0070.00716.29
7.3.280.0100.00716.27
7.3.270.0100.00717.40
7.3.260.0070.01016.47
7.3.250.0130.00616.49
7.3.240.0120.00616.49
7.3.230.0160.00616.64
7.3.210.0030.01416.51
7.3.200.0050.01716.43
7.3.190.0160.00316.60
7.3.180.0000.01716.40
7.3.170.0140.00316.50
7.3.160.0060.00916.45
7.3.130.0090.00915.03
7.3.120.0110.00714.69
7.3.110.0080.01014.85
7.3.100.0100.00514.94
7.3.90.0040.00915.02
7.3.80.0060.00814.74
7.3.70.0050.00514.96
7.3.60.0010.00914.79
7.3.50.0050.00714.69
7.3.40.0060.01014.64
7.3.30.0060.00814.82
7.3.20.0050.00816.49
7.3.10.0060.00616.55
7.3.00.0060.00916.77
7.2.330.0060.01116.82
7.2.320.0120.00916.73
7.2.310.0090.00916.64
7.2.300.0120.00916.74
7.2.290.0030.02016.65
7.2.260.0170.00315.06
7.2.250.0090.01115.34
7.2.240.0020.01515.06
7.2.230.0080.00515.19
7.2.220.0030.01115.14
7.2.210.0070.00915.18
7.2.200.0060.00615.06
7.2.190.0070.00914.97
7.2.180.0020.01115.00
7.2.170.0020.01214.95
7.2.160.0060.00915.18
7.2.150.0070.00416.85
7.2.140.0070.00717.00
7.2.130.0070.00417.06
7.2.120.0050.00516.84
7.2.110.0090.00316.95
7.2.100.0080.00416.95
7.2.90.0000.01317.15
7.2.80.0110.00316.98
7.2.70.0040.01117.06
7.2.60.0040.00817.01
7.2.50.0000.01317.05
7.2.40.0050.00517.02
7.2.30.0110.00416.82
7.2.20.0000.01116.72
7.2.10.0110.00516.91
7.2.00.0000.01317.13
7.1.330.0090.00515.90
7.1.320.0090.00415.87
7.1.310.0090.00515.70
7.1.300.0080.00515.85
7.1.290.0050.00615.76
7.1.280.0020.01315.64
7.1.270.0060.00615.59
7.1.260.0060.00615.61
7.1.250.0070.00715.80
7.1.240.0030.00615.62
7.1.230.0070.00315.89
7.1.220.0060.00815.89
7.1.210.0030.00715.82
7.1.200.0050.00615.77
7.1.190.0030.00515.83
7.1.180.0090.00315.55
7.1.170.0070.00715.60
7.1.160.0100.00016.03
7.1.150.0000.00815.73
7.1.140.0040.00815.52
7.1.130.0040.00815.89
7.1.120.0030.00915.86
7.1.110.0090.00616.00
7.1.100.0030.01015.94
7.1.90.0000.01315.97
7.1.80.0020.01217.21
7.1.70.0040.00816.41
7.1.60.0100.00825.49
7.1.50.0110.00825.31
7.1.40.0140.00725.05
7.1.30.0120.00825.09
7.1.20.0140.00625.23
7.1.10.0110.00215.98
7.1.00.0050.00716.23
7.0.330.0060.00615.24
7.0.320.0000.01115.12
7.0.310.0040.00415.39
7.0.300.0000.01215.27
7.0.290.0030.00915.36
7.0.280.0000.00815.52
7.0.270.0040.00415.46
7.0.260.0100.00315.18
7.0.250.0040.00815.58
7.0.240.0060.00915.47
7.0.230.0030.00515.57
7.0.220.0060.00615.40
7.0.210.0070.00315.36
7.0.200.0040.00616.11
7.0.190.0080.00316.20
7.0.180.0020.01115.83
7.0.170.0020.01215.64
7.0.160.0060.00915.88
7.0.150.0040.00715.85
7.0.140.0020.00915.73
7.0.130.0070.00616.03
7.0.120.0090.00415.95
7.0.110.0070.00815.92
7.0.100.0050.01015.79
7.0.90.0020.01215.87
7.0.80.0040.01015.81
7.0.70.0050.00815.84
7.0.60.0040.00815.87
7.0.50.0030.01416.00
7.0.40.0020.00915.04
7.0.30.0030.00815.00
7.0.20.0020.01314.93
7.0.10.0020.01114.99
7.0.00.0050.00815.00
5.6.400.0000.00914.06
5.6.390.0030.01214.52
5.6.380.0040.00714.48
5.6.370.0040.01214.59
5.6.360.0000.01414.29
5.6.350.0040.01114.57
5.6.340.0000.01214.73
5.6.330.0070.00714.30
5.6.320.0100.00314.21
5.6.310.0000.01514.18
5.6.300.0080.00414.16
5.6.290.0040.00814.68
5.6.280.0040.01114.24
5.6.270.0110.00414.12
5.6.260.0040.01114.53
5.6.250.0040.01414.43
5.6.240.0090.00014.39
5.6.230.0060.00314.41
5.6.220.0030.00714.38
5.6.210.0070.00714.41
5.6.200.0030.01014.62
5.6.190.0030.01014.66
5.6.180.0060.00314.49
5.6.170.0030.00714.23
5.6.160.0030.01014.14
5.6.150.0060.00314.36
5.6.140.0030.00814.20
5.6.130.0060.00614.84
5.6.120.0080.00814.24
5.6.110.0080.00514.14
5.6.100.0070.00714.33
5.6.90.0030.01014.58
5.6.80.0060.00914.37
5.6.70.0000.01014.02
5.6.60.0030.01014.36
5.6.50.0060.00614.20
5.6.40.0070.00714.24
5.6.30.0000.01014.12
5.6.20.0000.01514.18
5.6.10.0000.01414.44
5.6.00.0100.00714.18

preferences:
42.24 ms | 401 KiB | 5 Q