3v4l.org

run code in 300+ PHP versions simultaneously
<?php $mylist = array("thing1" => "Balloon", "thing2" => "Cat", "thing3" => "Egg", "thing4" => "Dog", "thing5" => "Apple"); asort($mylist); foreach($mylist as $id => $value) { $id = htmlentities($id, ENT_QUOTES); $value = htmlentities($value); echo "<div id='{$id}'>{$value}</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.60.0070.01416.38
8.3.50.0160.00522.04
8.3.40.0040.01118.63
8.3.30.0140.00719.06
8.3.20.0050.00220.34
8.3.10.0120.00623.48
8.3.00.0000.01119.25
8.2.180.0120.00316.50
8.2.170.0040.01122.96
8.2.160.0160.00620.49
8.2.150.0060.00324.18
8.2.140.0110.00424.66
8.2.130.0120.00626.16
8.2.120.0040.00422.24
8.2.110.0030.00622.30
8.2.100.0000.01217.84
8.2.90.0000.00819.13
8.2.80.0040.00417.97
8.2.70.0050.00517.38
8.2.60.0060.00317.93
8.2.50.0000.00818.07
8.2.40.0030.00518.22
8.2.30.0000.00717.95
8.2.20.0000.00717.62
8.2.10.0000.00718.18
8.2.00.0030.00917.68
8.1.280.0090.01225.92
8.1.270.0090.00021.99
8.1.260.0080.00026.35
8.1.250.0110.00728.09
8.1.240.0030.00623.82
8.1.230.0080.00319.08
8.1.220.0030.00517.76
8.1.210.0060.00318.77
8.1.200.0060.00317.22
8.1.190.0040.00417.39
8.1.180.0080.00018.10
8.1.170.0090.00018.64
8.1.160.0080.00021.95
8.1.150.0000.00718.70
8.1.140.0000.00817.45
8.1.130.0000.00717.82
8.1.120.0030.00517.46
8.1.110.0000.00717.42
8.1.100.0020.00517.48
8.1.90.0000.00817.50
8.1.80.0030.00517.42
8.1.70.0040.00417.41
8.1.60.0070.00417.59
8.1.50.0040.00417.40
8.1.40.0030.00617.43
8.1.30.0030.00617.62
8.1.20.0030.00517.68
8.1.10.0020.00517.40
8.1.00.0040.00417.34
8.0.300.0000.00818.77
8.0.290.0000.00717.18
8.0.280.0000.00718.37
8.0.270.0070.00017.23
8.0.260.0000.00717.30
8.0.250.0040.00417.01
8.0.240.0080.00316.96
8.0.230.0070.00016.90
8.0.220.0000.00716.93
8.0.210.0030.00316.77
8.0.200.0080.00016.84
8.0.190.0000.00716.85
8.0.180.0040.00416.98
8.0.170.0030.00516.82
8.0.160.0030.00416.82
8.0.150.0040.00416.79
8.0.140.0000.00716.74
8.0.130.0040.00413.26
8.0.120.0040.00416.75
8.0.110.0000.00716.95
8.0.100.0000.00716.79
8.0.90.0000.00716.77
8.0.80.0130.00316.94
8.0.70.0000.00716.73
8.0.60.0050.00216.70
8.0.50.0040.00416.79
8.0.30.0100.01016.92
8.0.20.0100.00817.40
8.0.10.0080.00016.89
8.0.00.0120.00616.71
7.4.330.0000.00615.03
7.4.320.0030.00316.53
7.4.300.0070.00016.44
7.4.290.0030.00316.65
7.4.280.0070.00016.49
7.4.270.0030.00316.56
7.4.260.0030.00316.56
7.4.250.0050.00216.55
7.4.240.0020.00516.50
7.4.230.0030.00316.61
7.4.220.0090.00916.68
7.4.210.0080.00816.66
7.4.200.0070.00016.54
7.4.190.0080.00016.67
7.4.160.0110.00616.34
7.4.150.0030.01417.40
7.4.140.0160.00617.86
7.4.130.0100.00616.46
7.4.120.0110.00616.55
7.4.110.0090.00916.61
7.4.100.0070.01316.34
7.4.90.0070.01016.34
7.4.80.0060.01119.39
7.4.70.0030.02016.54
7.4.60.0120.00616.51
7.4.50.0060.00316.52
7.4.40.0040.01122.77
7.4.30.0140.00316.66
7.4.00.0030.01014.80
7.3.330.0000.00513.13
7.3.320.0020.00213.11
7.3.310.0000.00716.17
7.3.300.0030.00316.16
7.3.290.0100.01016.29
7.3.280.0080.01216.33
7.3.270.0120.00817.40
7.3.260.0130.00316.26
7.3.250.0120.00516.48
7.3.240.0090.01116.49
7.3.230.0170.00016.39
7.3.210.0080.00816.32
7.3.200.0070.01419.39
7.3.190.0160.00016.61
7.3.180.0150.00716.16
7.3.170.0080.00816.39
7.3.160.0120.00416.27
7.3.120.0060.01014.59
7.2.330.0100.00916.70
7.2.320.0110.00716.80
7.2.310.0130.00416.66
7.2.300.0100.00616.79
7.2.290.0030.01316.68
7.2.60.0060.00916.88
7.2.00.0110.00019.43
7.1.200.0030.00915.85
7.1.100.0000.00817.77
7.1.70.0120.01217.19
7.1.60.0140.01019.33
7.1.50.0120.00916.91
7.1.00.0070.07322.43
7.0.200.0710.00614.62
7.0.140.0000.07722.07
7.0.60.0100.08319.95
7.0.50.0100.07317.88
7.0.40.0000.05020.20
7.0.30.0270.07320.02
7.0.20.0330.05720.09
7.0.10.0100.08320.16
7.0.00.0030.04720.00
5.6.280.0030.07321.07
5.6.210.0000.09720.70
5.6.200.0030.08318.18
5.6.190.0100.09020.41
5.6.180.2030.04020.61
5.6.170.0230.05020.50
5.6.160.0070.05720.51
5.6.150.0030.04318.09
5.6.140.0070.03718.16
5.6.130.0030.06018.12
5.6.120.0100.06721.12
5.6.110.0170.07320.98
5.6.100.0100.06721.11
5.6.90.0100.08021.11
5.6.80.0100.08320.37
5.6.70.2730.03020.39
5.5.350.0300.06320.43
5.5.340.0070.04717.92
5.5.330.0070.03720.24
5.5.320.0370.03720.27
5.5.310.0330.07320.32
5.5.300.0130.07717.91
5.5.290.0070.03718.01
5.5.280.0100.08020.80
5.5.270.0030.04020.75
5.5.260.0170.07320.79
5.5.250.0100.05720.68
5.5.240.0100.04720.04
5.4.450.0700.05719.11
5.4.440.0730.05719.44
5.4.430.0130.06019.57
5.4.420.0170.05019.68
5.4.410.0030.06719.35
5.4.400.0000.06019.39
5.4.390.0170.04318.92
5.4.380.0230.06318.63
5.4.370.0370.05718.71
5.4.360.0430.04718.78
5.4.350.0330.06318.74
5.4.340.0570.04718.50
5.4.320.0050.03812.46
5.4.310.0040.03912.45
5.4.300.0070.04112.45
5.4.290.0100.05012.45
5.4.280.0120.05612.32
5.4.270.0110.05012.32
5.4.260.0140.06712.32
5.4.250.0190.05712.32
5.4.240.0130.06312.32
5.4.230.0110.06312.31
5.4.220.0180.06912.31
5.4.210.0120.05112.32
5.4.200.0100.05512.31
5.4.190.0170.05212.31
5.4.180.0130.05912.31
5.4.170.0180.05912.32
5.4.160.0140.05412.32
5.4.150.0140.04912.32
5.4.140.0110.05512.00
5.4.130.0190.05011.98
5.4.120.0080.04211.95
5.4.110.0110.04711.94
5.4.100.0090.05411.94
5.4.90.0100.04811.94
5.4.80.0070.05711.94
5.4.70.0140.06411.94
5.4.60.0180.04911.94
5.4.50.0190.05811.93
5.4.40.0170.06311.93
5.4.30.0160.06411.92
5.4.20.0180.04711.92
5.4.10.0160.06711.93
5.4.00.0120.08311.41
5.3.290.0070.03812.80
5.3.280.0150.08412.70
5.3.270.0130.05012.72
5.3.260.0120.04412.72
5.3.250.0110.04612.72
5.3.240.0220.06712.72
5.3.230.0160.05312.71
5.3.220.0110.05012.68
5.3.210.0120.06212.68
5.3.200.0190.06512.68
5.3.190.0210.07612.68
5.3.180.0210.10212.68
5.3.170.0150.07712.67
5.3.160.0210.05612.68
5.3.150.0130.06312.68
5.3.140.0090.05912.66
5.3.130.0080.05012.65
5.3.120.0110.04012.66
5.3.110.0060.04412.65
5.3.100.0060.04212.12
5.3.90.0120.04912.09
5.3.80.0120.07212.07
5.3.70.0090.04812.08
5.3.60.0210.07212.07
5.3.50.0190.11712.00
5.3.40.0100.09012.00
5.3.30.0170.08411.94
5.3.20.0190.08411.70
5.3.10.0120.08711.66
5.3.00.0170.06411.66
5.2.170.0130.0509.15
5.2.160.0180.0689.15
5.2.150.0100.0579.15
5.2.140.0100.0499.15
5.2.130.0100.0529.11
5.2.120.0110.0629.10
5.2.110.0150.0859.11
5.2.100.0150.0679.11
5.2.90.0140.0669.11
5.2.80.0180.0629.11
5.2.70.0060.0509.11
5.2.60.0110.0459.06
5.2.50.0100.0469.03
5.2.40.0150.0409.00
5.2.30.0120.0588.99
5.2.20.0210.0628.97
5.2.10.0130.0398.90
5.2.00.0040.0538.77
5.1.60.0130.0318.05
5.1.50.0080.0358.05
5.1.40.0100.0338.03
5.1.30.0100.0408.38
5.1.20.0130.0348.40
5.1.10.0080.0358.13
5.1.00.0260.0828.13
5.0.50.0040.0356.60
5.0.40.0080.0306.46
5.0.30.0080.0436.27
5.0.20.0060.0286.25
5.0.10.0070.0296.23
5.0.00.0070.0436.21
4.4.90.0020.0264.78
4.4.80.0060.0224.75
4.4.70.0070.0204.75
4.4.60.0050.0224.76
4.4.50.0040.0244.77
4.4.40.0030.0424.71
4.4.30.0060.0194.76
4.4.20.0030.0244.85
4.4.10.0140.0444.84
4.4.00.0020.0374.76
4.3.110.0020.0274.67
4.3.100.0050.0234.66
4.3.90.0030.0254.63
4.3.80.0050.0324.58
4.3.70.0060.0204.63
4.3.60.0070.0214.62
4.3.50.0060.0234.63
4.3.40.0060.0334.54
4.3.30.0040.0213.28
4.3.20.0040.0203.26
4.3.10.0040.0203.20
4.3.00.0130.0207.06

preferences:
40.76 ms | 400 KiB | 5 Q