3v4l.org

run code in 300+ PHP versions simultaneously
<?php $cakedata = [ ["shape" => "Heart", "flavor" => "Chocolate", "toppings" => "Cookies"], ["shape" => "Rectangle", "flavor" => "Vanilla", "toppings" => "Spun-sugar Flowers"], ["shape" => "Square", "flavor" => "Lemon", "toppings" => "Mini Chocolate Candies"], ["shape" => "Round", "flavor" => "Cheesecake", "toppings" => "Marshmallows"] ]; $td = <<<'TD' <td><label><input type="radio" name="%1$s" value="%2$s" required>%2$s</label></td> TD; foreach ($cakedata as $row) { echo '<tr>'; foreach ($row as $attr => $value) { printf($td, htmlentities($attr), htmlentities($value)); } echo '</tr>'; }

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.0110.00720.38
8.5.00.0110.01119.93
8.4.150.0020.00014.05
8.4.140.0130.01017.46
8.4.130.0110.00817.81
8.4.120.0120.00820.40
8.4.110.0100.01122.33
8.4.100.0050.00517.64
8.4.90.0100.00717.64
8.4.80.0120.00719.50
8.4.70.0100.00917.85
8.4.60.0130.00817.82
8.4.50.0130.00917.76
8.4.40.0100.01022.24
8.4.30.0000.00918.72
8.4.20.0080.01220.39
8.4.10.0030.00623.52
8.3.280.0150.00718.57
8.3.270.0110.01016.41
8.3.260.0070.00216.52
8.3.250.0100.00818.71
8.3.240.0100.01016.61
8.3.230.0100.01016.59
8.3.220.0120.00616.55
8.3.210.0040.00916.58
8.3.200.0110.00816.52
8.3.190.0080.00516.55
8.3.180.0080.00916.64
8.3.170.0040.00419.20
8.3.160.0120.00618.35
8.3.150.0070.01116.99
8.3.140.0040.00416.81
8.3.130.0080.00818.59
8.3.120.0090.00020.54
8.3.110.0060.00320.94
8.3.100.0100.01018.59
8.3.90.0040.00426.77
8.3.80.0030.00618.43
8.3.70.0110.00418.43
8.3.60.0140.00418.15
8.3.50.0140.00716.73
8.3.40.0040.01119.95
8.3.30.0070.01018.72
8.3.20.0000.00824.18
8.3.10.0000.00724.66
8.3.00.0090.00026.16
8.2.290.0050.01322.00
8.2.280.0120.00816.44
8.2.270.0090.00920.84
8.2.260.0030.00519.00
8.2.250.0000.00818.96
8.2.240.0060.00916.92
8.2.230.0030.00622.58
8.2.220.0030.00624.06
8.2.210.0040.00426.77
8.2.200.0060.00316.50
8.2.190.0090.00618.05
8.2.180.0110.01116.63
8.2.170.0180.00419.14
8.2.160.0030.01022.96
8.2.150.0000.00825.66
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0040.00422.08
8.2.110.0140.00421.00
8.2.100.0060.00619.64
8.2.90.0000.00817.63
8.2.80.0090.00018.65
8.2.70.0040.00417.63
8.2.60.0040.00417.63
8.2.50.0090.00619.49
8.2.40.0150.00319.49
8.2.30.0090.00919.49
8.2.20.0140.00319.49
8.2.10.0110.00619.49
8.2.00.0090.00919.49
8.1.330.0110.00821.93
8.1.320.0100.01016.16
8.1.310.0040.01118.70
8.1.300.0090.00018.38
8.1.290.0060.00330.84
8.1.280.0100.01025.92
8.1.270.0080.00024.66
8.1.260.0050.00326.35
8.1.250.0000.00728.09
8.1.240.0060.00319.27
8.1.230.0110.00022.17
8.1.220.0030.00517.74
8.1.210.0080.00018.77
8.1.200.0050.00317.23
8.1.190.0040.00417.35
8.1.180.0110.00619.49
8.1.170.0180.00019.49
8.1.160.0120.00519.49
8.1.150.0130.00419.49
8.1.140.0100.00719.49
8.1.130.0120.00419.49
8.1.120.0100.00719.49
8.1.110.0130.00319.49
8.1.100.0200.00319.49
8.1.90.0130.00319.49
8.1.80.0080.01119.49
8.1.70.0140.00519.49
8.1.60.0090.00919.49
8.1.50.0100.00719.49
8.1.40.0190.00019.49
8.1.30.0050.01419.49
8.1.20.0090.00919.49
8.1.10.0100.00719.49
8.1.00.0180.00019.49
8.0.300.0000.00718.77
8.0.290.0070.00016.75
8.0.280.0080.00819.49
8.0.270.0080.01019.49
8.0.260.0100.00619.49
8.0.250.0080.00819.49
8.0.240.0000.01719.49
8.0.230.0140.00419.49
8.0.220.0130.00319.49
8.0.210.0180.00019.49
8.0.200.0110.00719.49
8.0.190.0100.00719.49
8.0.180.0080.01019.49
8.0.170.0100.00619.49
8.0.160.0110.00719.49
8.0.150.0130.00319.49
8.0.140.0120.00419.49
8.0.130.0140.00319.49
8.0.120.0070.01019.49
8.0.110.0140.00219.49
8.0.100.0190.00019.49
8.0.90.0160.00019.49
8.0.80.0140.00319.49
8.0.70.0130.00419.49
8.0.60.0130.00519.49
8.0.50.0130.00419.49
8.0.30.0140.00219.49
8.0.20.0190.00019.49
8.0.10.0110.00619.49

preferences:
33.85 ms | 403 KiB | 5 Q