3v4l.org

run code in 300+ PHP versions simultaneously
<?php function display_form($fields) { foreach ($fields as $field) {?> <label><?=$field['label']?> <input type="<?=$field['type']?>" name="<?=$field['name']?>" value="<?=$field['value']?>" /> </label> <?php } } display_form( array( array( "type" => "text", "name" => "first_name", "value" => "", "label" => "First Name" ), array( "type" => "text", "name" => "last_name", "value" => "", "label" => "Last Name" ), array( "type" => "email", "name" => "email", "value" => "", "label" => "Email" ), array( "type" => "number", "name" => "extension", "value" => "", "label" => "Extension" ) ) );

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.4.120.0150.00522.41
8.4.110.0120.00723.98
8.4.100.0080.01317.62
8.4.90.0100.01020.32
8.4.80.0040.00318.85
8.4.70.0110.00619.07
8.4.60.0070.00120.55
8.4.50.0120.00821.49
8.4.40.0190.00018.61
8.4.30.0090.01020.40
8.4.20.0110.00718.00
8.4.10.0060.00320.71
8.3.250.0120.00718.68
8.3.240.0060.00317.41
8.3.230.0100.00616.31
8.3.220.0100.00718.84
8.3.210.0130.00716.39
8.3.200.0030.00616.54
8.3.190.0090.00517.21
8.3.180.0040.00516.59
8.3.170.0120.00616.69
8.3.160.0110.00716.71
8.3.150.0060.01316.92
8.3.140.0150.00016.63
8.3.130.0060.01018.39
8.3.120.0040.00418.86
8.3.110.0030.00518.43
8.3.100.0110.00024.06
8.3.90.0100.00026.77
8.3.80.0080.00416.48
8.3.70.0130.01018.30
8.3.60.0150.00616.50
8.3.50.0250.00923.48
8.3.40.0110.00721.90
8.3.30.0090.00618.73
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0040.00426.16
8.2.290.0110.00616.80
8.2.280.0140.00620.17
8.2.270.0110.00718.48
8.2.260.0050.00320.54
8.2.250.0080.00018.35
8.2.240.0140.00719.01
8.2.230.0000.00920.94
8.2.220.0000.00837.54
8.2.210.0060.00326.77
8.2.200.0030.00616.38
8.2.190.0100.01016.58
8.2.180.0040.01125.92
8.2.170.0120.00318.83
8.2.160.0110.00722.96
8.2.150.0040.00425.66
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0040.00426.35
8.2.110.0050.00519.31
8.2.100.0080.00417.84
8.2.90.0060.00319.88
8.2.80.0040.00417.97
8.2.70.0000.00817.93
8.2.60.0000.00718.22
8.2.50.0040.00418.10
8.2.40.0040.00422.36
8.2.30.0040.00418.08
8.2.20.0070.00018.12
8.2.10.0030.00519.16
8.2.00.0040.00419.12
8.1.330.0140.00516.07
8.1.320.0110.01115.92
8.1.310.0100.00318.45
8.1.300.0110.00718.23
8.1.290.0070.00430.84
8.1.280.0110.01125.92
8.1.270.0040.00423.99
8.1.260.0000.00928.09
8.1.250.0050.00228.09
8.1.240.0110.00021.73
8.1.230.0110.00020.88
8.1.220.0000.00817.74
8.1.210.0060.00318.91
8.1.200.0040.00417.23
8.1.190.0030.00617.10
8.1.180.0060.00618.10
8.1.170.0050.00218.65
8.1.160.0070.00320.52
8.1.150.0110.00018.87
8.1.140.0040.00418.94
8.1.130.0040.00422.04
8.1.120.0050.00317.40
8.1.110.0050.00317.41
8.1.100.0030.00617.35
8.1.90.0050.00317.39
8.1.80.0040.00517.41
8.1.70.0040.00417.33
8.1.60.0030.00617.45
8.1.50.0000.00917.51
8.1.40.0020.00717.47
8.1.30.0050.00317.56
8.1.20.0040.00517.60
8.1.10.0060.00317.52
8.1.00.0070.00217.39
8.0.300.0000.00719.90
8.0.290.0050.00516.75
8.0.280.0050.00518.43
8.0.270.0050.00217.93
8.0.260.0000.00618.49
8.0.250.0070.00017.00
8.0.240.0040.00416.80
8.0.230.0080.00216.66
8.0.220.0060.00516.81
8.0.210.0040.00616.69
8.0.200.0070.00516.83
8.0.190.0090.00416.97
8.0.180.0080.00416.59
8.0.170.0060.00416.86
8.0.160.0020.00816.71
8.0.150.0060.00516.58
8.0.140.0120.00016.65
8.0.130.0080.00214.91
8.0.120.0030.00716.57
8.0.110.0110.00216.74
8.0.100.0110.00216.58
8.0.90.0110.00016.70
8.0.80.0100.00516.74
8.0.70.0110.00216.70
8.0.60.0080.00216.59
8.0.50.0080.00416.62
8.0.30.0110.00716.90
8.0.20.0120.00716.81
8.0.10.0040.00716.99
8.0.00.0070.00916.81
7.4.330.0050.00015.55
7.4.320.0030.00316.45
7.4.300.0040.00416.42
7.4.290.0070.00316.21
7.4.280.0080.00116.31
7.4.270.0080.00316.35
7.4.260.0060.00314.54
7.4.250.0060.00616.19
7.4.240.0070.00316.15
7.4.230.0090.00216.26
7.4.220.0080.00116.35
7.4.210.0090.00716.47
7.4.200.0060.00616.34
7.4.190.0070.00716.07
7.4.180.0100.00416.22
7.4.160.0070.00716.12
7.4.150.0090.00516.20
7.4.140.0040.00816.13
7.4.130.0130.00316.38
7.4.120.0130.00716.23
7.4.110.0100.00916.05
7.4.100.0100.00816.33
7.4.90.0100.00416.21
7.4.80.0090.00716.24
7.4.70.0120.00316.37
7.4.60.0130.00216.31
7.4.50.0080.00716.28
7.4.40.0080.00816.14
7.4.30.0130.00316.35
7.4.20.0100.00516.28
7.4.10.0080.00916.22
7.4.00.0120.00416.35
7.3.330.0060.00716.43
7.3.320.0060.00514.85
7.3.310.0070.00416.42
7.3.300.0100.00116.35
7.3.290.0070.00916.29
7.3.280.0100.00516.30
7.3.270.0110.00416.29
7.3.260.0090.00716.35
7.3.250.0080.00816.37
7.3.240.0100.00916.34
7.3.230.0100.00616.24
7.3.220.0080.00816.38
7.3.210.0090.00716.29
7.3.200.0130.00516.29
7.3.190.0110.00616.31
7.3.180.0080.01116.26
7.3.170.0110.00516.39
7.3.160.0040.01216.38
7.3.150.0120.00416.39
7.3.140.0090.00816.36
7.3.130.0090.00816.35
7.3.120.0100.00616.41
7.3.110.0080.00816.32
7.3.100.0070.00816.31
7.3.90.0100.00616.31
7.3.80.0080.00716.30
7.3.70.0080.00816.27
7.3.60.0100.00616.50
7.3.50.0090.00616.31
7.3.40.0080.00816.36
7.3.30.0130.00316.40
7.3.20.0220.00216.49
7.3.10.0090.00716.46
7.3.00.0100.00716.41
7.2.340.0100.00716.63
7.2.330.0110.00516.54
7.2.320.0080.00816.39
7.2.310.0070.00816.46
7.2.300.0110.00516.45
7.2.290.0110.00516.45
7.2.280.0090.00916.56
7.2.270.0170.00116.38
7.2.260.0090.00816.54
7.2.250.0090.00616.46
7.2.240.0080.00716.32
7.2.230.0090.00616.44
7.2.220.0100.00616.55
7.2.210.0070.00916.43
7.2.200.0130.00716.63
7.2.190.0130.00516.57
7.2.180.0070.00916.57
7.2.170.0100.00516.61
7.2.160.0060.00916.67
7.2.150.0120.00616.55
7.2.140.0090.00916.75
7.2.130.0120.00516.71
7.2.120.0130.00516.53
7.2.110.0070.00916.72
7.2.100.0080.00916.72
7.2.90.0080.01016.60
7.2.80.0080.00916.52
7.2.70.0120.00516.59
7.2.60.0100.00816.61
7.2.50.0130.00716.70
7.2.40.0120.00516.70
7.2.30.0250.00616.69
7.2.20.0090.00916.61
7.2.10.0120.00516.56
7.2.00.0130.00516.67

preferences:
26.62 ms | 403 KiB | 5 Q