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 ['sp_id' => $id, 'specifications_name' => $name]) { 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>', $name, $id, in_array($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.5.10.0120.00816.89
8.5.00.0130.00820.14
8.4.150.0030.00014.05
8.4.140.0120.01117.47
8.4.130.0150.00817.68
8.4.120.0110.00920.56
8.4.110.0040.00422.38
8.4.100.0100.01017.63
8.4.90.0100.00920.46
8.4.80.0070.00518.87
8.4.70.0060.00218.91
8.4.60.0080.01218.58
8.4.50.0080.00719.52
8.4.40.0030.00717.56
8.4.30.0130.00618.66
8.4.20.0100.01018.66
8.4.10.0080.00820.27
8.3.280.0110.01018.23
8.3.270.0090.01116.56
8.3.260.0130.00616.55
8.3.250.0110.00918.65
8.3.240.0080.01216.50
8.3.230.0120.00616.45
8.3.220.0120.00718.95
8.3.210.0120.00718.13
8.3.200.0050.00416.59
8.3.190.0110.00618.89
8.3.180.0110.00716.49
8.3.170.0120.00618.98
8.3.160.0110.00718.22
8.3.150.0120.00620.53
8.3.140.0050.00316.59
8.3.130.0000.00818.34
8.3.120.0060.00320.84
8.3.110.0120.00420.94
8.3.100.0070.01018.25
8.3.90.0040.01526.77
8.3.80.0000.01019.36
8.3.70.0160.01016.63
8.3.60.0080.01518.31
8.3.50.0100.00718.09
8.3.40.0170.00318.57
8.3.30.0120.00318.82
8.3.20.0050.00324.18
8.3.10.0040.00424.66
8.3.00.0030.00526.16
8.2.290.0110.00720.48
8.2.280.0120.00718.43
8.2.270.0090.00917.00
8.2.260.0070.00020.52
8.2.250.0060.01316.59
8.2.240.0060.00318.86
8.2.230.0060.00322.58
8.2.220.0030.00524.06
8.2.210.0070.01126.77
8.2.200.0060.00318.88
8.2.190.0110.00418.04
8.2.180.0090.00625.92
8.2.170.0120.00319.08
8.2.160.0070.00722.96
8.2.150.0080.00025.66
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0080.00026.16
8.2.110.0030.00722.31
8.2.100.0080.00417.84
8.2.90.0080.00018.03
8.2.80.0040.00419.45
8.2.70.0080.00017.50
8.2.60.0050.00317.63
8.2.50.0050.00318.10
8.2.40.0030.00621.07
8.2.30.0030.00619.31
8.2.20.0070.00018.00
8.2.10.0000.00719.29
8.2.00.0080.00019.37
8.1.330.0130.00722.10
8.1.320.0140.00618.12
8.1.310.0100.00718.60
8.1.300.0120.00317.82
8.1.290.0060.00330.84
8.1.280.0130.00725.92
8.1.270.0050.00323.99
8.1.260.0070.00026.35
8.1.250.0050.00228.09
8.1.240.0090.00022.10
8.1.230.0080.00420.88
8.1.220.0050.00317.78
8.1.210.0040.00418.87
8.1.200.0080.00017.35
8.1.190.0000.00817.23
8.1.180.0000.00918.10
8.1.170.0040.00418.73
8.1.160.0000.00720.59
8.1.150.0020.00518.95
8.1.140.0030.00618.79
8.1.130.0070.00020.04
8.1.120.0040.00417.47
8.1.110.0040.00417.44
8.1.100.0060.00817.46
8.1.90.0050.00217.47
8.1.80.0030.00617.35
8.1.70.0000.00717.47
8.1.60.0080.00017.57
8.1.50.0000.00817.51
8.1.40.0030.00617.41
8.1.30.0000.00817.63
8.1.20.0040.00417.63
8.1.10.0080.00017.57
8.1.00.0000.00817.57
8.0.300.0080.00020.03
8.0.290.0040.00416.75
8.0.280.0000.00718.36
8.0.270.0040.00416.91
8.0.260.0030.00318.53
8.0.250.0040.00416.83
8.0.240.0040.00416.93
8.0.230.0000.00716.86
8.0.220.0030.00316.77
8.0.210.0070.00016.78
8.0.200.0070.00016.91
8.0.190.0000.00816.89
8.0.180.0050.00216.93
8.0.170.0030.00516.92
8.0.160.0000.00816.86
8.0.150.0040.00316.85
8.0.140.0000.00716.88
8.0.130.0060.00313.33
8.0.120.0050.00216.78
8.0.110.0040.00416.91
8.0.100.0080.00016.75
8.0.90.0050.00317.01
8.0.80.0060.01016.88
8.0.70.0040.00416.79
8.0.60.0040.00416.80
8.0.50.0000.00816.88
8.0.30.0190.01016.58
8.0.20.0190.00916.72
8.0.10.0160.01216.94
8.0.00.0080.01616.92
7.4.330.0030.00315.55
7.4.320.0000.00616.52
7.4.300.0030.00316.55
7.4.290.0000.00716.46
7.4.280.0040.00416.52
7.4.270.0000.00716.62
7.4.260.0060.00013.29
7.4.250.0070.00016.48
7.4.240.0020.00516.53
7.4.230.0080.00016.64
7.4.220.0000.00616.66
7.4.210.0070.00716.63
7.4.200.0070.00016.71
7.4.160.0130.00516.56
7.4.150.0140.01416.49
7.4.140.0160.00816.30
7.4.130.0120.01216.26
7.4.120.0170.01416.39
7.4.110.0230.00416.34
7.4.100.0220.01116.27
7.4.90.0230.00716.16
7.4.80.0210.01116.23
7.4.70.0260.00416.40
7.4.60.0240.00716.19
7.4.50.0230.01016.26
7.4.40.0250.01116.32
7.4.30.0270.00716.38
7.4.20.0240.00716.35
7.4.10.0150.01516.26
7.4.00.0180.00916.42
7.3.330.0030.00316.21
7.3.320.0000.00513.06
7.3.310.0000.00716.38
7.3.300.0070.00016.23
7.3.290.0090.00516.29
7.3.280.0210.01416.21
7.3.270.0200.00716.19
7.3.260.0190.00616.14
7.3.250.0150.01516.23
7.3.240.0250.00616.14
7.3.230.0220.01116.20
7.3.220.0240.01416.21
7.3.210.0320.01016.15
7.3.200.0240.00716.17
7.3.190.0200.01216.07
7.3.180.0170.00716.14
7.3.170.0210.00916.05
7.3.160.0220.00416.13
7.3.150.0180.00916.16
7.3.140.0170.01016.14
7.3.130.0210.00616.14
7.3.120.0220.00316.10
7.3.110.0200.00816.07
7.3.100.0140.01115.99
7.3.90.0200.00616.25
7.3.80.0210.00616.12
7.3.70.0170.00816.20
7.3.60.0160.01016.25
7.3.50.0130.01316.39
7.3.40.0140.01116.25
7.3.30.0140.01116.32
7.3.20.0230.00316.35
7.3.10.0290.01216.27
7.3.00.0220.00716.28

preferences:
17.32 ms | 403 KiB | 5 Q