3v4l.org

run code in 300+ PHP versions simultaneously
<?php function getgeneralSpecifications() { return [ ['sp_id' => 1, 'specifications_name' => 'example 1'], ['sp_id' => 2, 'specifications_name' => 'example 2'], ['sp_id' => 3, 'specifications_name' => 'example 3'], ['sp_id' => 4, 'specifications_name' => 'example 4'], ['sp_id' => 5, 'specifications_name' => 'example 5'], ['sp_id' => 6, 'specifications_name' => 'example 6'], ]; } $checked = explode(',', '1,2,4'); echo "<ul>"; foreach (getgeneralSpecifications() as $row) { printf( '<li> <label>%s</label> <div class="form-check"> <input class="form-check-input custom-checkbox generalsinglecheck" type="checkbox" value="%d" name="general_specification[]" %s> </div> </li>', $row['specifications_name'], $row['sp_id'], in_array($row['sp_id'], $checked) ? 'checked' : '' ); } echo "</ul>";

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.130.0110.01017.49
8.4.120.0120.00820.60
8.4.110.0120.00820.82
8.4.100.0100.00717.70
8.4.90.0110.01020.68
8.4.80.0120.00818.82
8.4.70.0140.00618.01
8.4.60.0100.00820.72
8.4.50.0070.00220.41
8.4.40.0070.00417.91
8.4.30.0060.01318.62
8.4.20.0130.01319.02
8.4.10.0090.00020.75
8.3.260.0030.00616.49
8.3.250.0100.00918.95
8.3.240.0100.00816.23
8.3.230.0130.00616.50
8.3.220.0110.00818.55
8.3.210.0040.00316.55
8.3.200.0050.00416.45
8.3.190.0130.00718.77
8.3.180.0100.00816.63
8.3.170.0120.00617.13
8.3.160.0000.01418.41
8.3.150.0090.00916.45
8.3.140.0090.00617.20
8.3.130.0090.00018.30
8.3.120.0000.00820.77
8.3.110.0080.00020.94
8.3.100.0060.00316.51
8.3.90.0110.00426.77
8.3.80.0080.00319.36
8.3.70.0120.00318.25
8.3.60.0130.00718.30
8.3.50.0070.00718.19
8.3.40.0040.01118.68
8.3.30.0040.01118.89
8.3.20.0000.00824.18
8.3.10.0040.00424.66
8.3.00.0040.00426.16
8.2.290.0140.00620.64
8.2.280.0070.00122.05
8.2.270.0140.00417.27
8.2.260.0050.00318.62
8.2.250.0090.00616.42
8.2.240.0120.00319.09
8.2.230.0060.00322.58
8.2.220.0000.00824.06
8.2.210.0070.00726.77
8.2.200.0060.00318.88
8.2.190.0070.00718.54
8.2.180.0070.00725.92
8.2.170.0110.00719.07
8.2.160.0040.01122.96
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0050.00326.16
8.2.120.0000.00820.77
8.2.110.0040.00420.43
8.2.100.0090.00317.91
8.2.90.0090.00019.41
8.2.80.0060.00317.97
8.2.70.0000.00817.63
8.2.60.0000.00818.05
8.2.50.0080.00018.07
8.2.40.0030.00619.75
8.2.30.0070.00017.98
8.2.20.0040.00418.13
8.2.10.0000.00719.19
8.2.00.0050.00319.18
8.1.330.0120.00721.90
8.1.320.0110.00816.04
8.1.310.0030.01218.50
8.1.300.0120.00818.27
8.1.290.0030.00630.84
8.1.280.0070.00725.92
8.1.270.0090.00023.78
8.1.260.0200.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00323.97
8.1.230.0060.00617.51
8.1.220.0040.00417.76
8.1.210.0050.00318.77
8.1.200.0040.00417.35
8.1.190.0040.00417.23
8.1.180.0000.01019.31
8.1.170.0060.00318.50
8.1.160.0040.00419.01
8.1.150.0050.00318.89
8.1.140.0070.00018.77
8.1.130.0040.00420.11
8.1.120.0040.00417.36
8.1.110.0070.00017.49
8.1.100.0070.00617.41
8.1.90.0030.00517.46
8.1.80.0060.00317.32
8.1.70.0000.01017.41
8.1.60.0000.00917.48
8.1.50.0040.00417.43
8.1.40.0000.00817.53
8.1.30.0030.00617.59
8.1.20.0030.00517.61
8.1.10.0000.00817.61
8.1.00.0000.00717.52
8.0.300.0040.00418.77
8.0.290.0040.00416.58
8.0.280.0040.00418.45
8.0.270.0000.00817.91
8.0.260.0000.00618.51
8.0.250.0060.00316.95
8.0.240.0000.00816.97
8.0.230.0030.00317.04
8.0.220.0000.00716.93
8.0.210.0040.00416.82
8.0.200.0000.00816.81
8.0.190.0000.00716.95
8.0.180.0000.00916.95
8.0.170.0060.00316.96
8.0.160.0030.00516.81
8.0.150.0050.00216.74
8.0.140.0040.00416.89
8.0.130.0000.00813.29
8.0.120.0030.00616.85
8.0.110.0000.00816.92
8.0.100.0040.00416.91
8.0.90.0070.00016.77
8.0.80.0100.00716.85
8.0.70.0070.00016.77
8.0.60.0070.00016.93
8.0.50.0040.00416.80
8.0.30.0160.01016.62
8.0.20.0130.01316.80
8.0.10.0160.00816.73
8.0.00.0040.01516.94
7.4.330.0040.00015.55
7.4.320.0000.00616.45
7.4.300.0030.00316.63
7.4.290.0030.00316.46
7.4.280.0080.00016.59
7.4.270.0030.00316.61
7.4.260.0000.00613.39
7.4.250.0070.00016.45
7.4.240.0000.00716.46
7.4.230.0000.00716.52
7.4.220.0050.00216.70
7.4.210.0070.01216.58
7.4.200.0030.00316.61
7.4.160.0270.00416.38
7.4.150.0130.01716.32
7.4.140.0180.00916.36
7.4.130.0280.00016.44
7.4.120.0170.01116.39
7.4.110.0180.01116.18
7.4.100.0140.01716.30
7.4.90.0180.00716.31
7.4.80.0200.00716.32
7.4.70.0190.00616.25
7.4.60.0200.01216.27
7.4.50.0240.00616.44
7.4.40.0210.00416.37
7.4.30.0210.00416.36
7.4.20.0160.00816.16
7.4.10.0160.01616.48
7.4.00.0220.00616.45
7.3.330.0030.00316.12
7.3.320.0040.00413.29
7.3.310.0040.00416.21
7.3.300.0000.00616.15
7.3.290.0060.01116.31
7.3.280.0190.01016.10
7.3.270.0160.01716.19
7.3.260.0230.00516.09
7.3.250.0310.00316.20
7.3.240.0150.01816.11
7.3.230.0110.02316.09
7.3.220.0240.00716.21
7.3.210.0260.00416.11
7.3.200.0290.00016.12
7.3.190.0210.00716.13
7.3.180.0170.01216.05
7.3.170.0210.01016.13
7.3.160.0230.01716.05
7.3.150.0240.00316.16
7.3.140.0290.00416.09
7.3.130.0290.00316.16
7.3.120.0120.01616.12
7.3.110.0220.00416.05
7.3.100.0190.00816.11
7.3.90.0210.00416.35
7.3.80.0240.00316.10
7.3.70.0190.01016.21
7.3.60.0150.01216.32
7.3.50.0180.00816.31
7.3.40.0140.01016.27
7.3.30.0120.01216.27
7.3.20.0390.00616.31
7.3.10.0240.00316.19
7.3.00.0260.00716.24

preferences:
128.99 ms | 403 KiB | 5 Q