3v4l.org

run code in 300+ PHP versions simultaneously
<?php $students = array ( array("Students Name" =>"Akash", "Roll No." =>01, "Subject" =>"c++","Gender" =>"male"), array("Students Name" =>"Dinesh", "Roll No." =>02, "Subject" =>"c++","Gender" =>"male"), array("Students Name" =>"Satish", "Roll No." =>03, "Subject" =>"c++","Gender" =>"male"), array("Students Name" =>"Alok", "Roll No." =>04, "Subject" =>"c++","Gender" =>"male"), ); echo '<pre>'; //print_r($students); //echo $students[0]["Students Name"]; //echo $students[1]["Roll No."]; foreach($students as $key=>$value) { echo '<p>'.$key.'-'.$value.'</p>'; }

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.0100.00718.29
8.3.50.0080.00821.95
8.3.40.0110.00418.71
8.3.30.0090.00618.91
8.3.20.0090.00020.30
8.3.10.0040.00423.70
8.3.00.0050.00319.16
8.2.180.0140.00416.63
8.2.170.0170.00022.96
8.2.160.0150.00420.39
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0080.00319.02
8.2.110.0000.00922.12
8.2.100.0120.00617.91
8.2.90.0000.00819.26
8.2.80.0080.00017.97
8.2.70.0100.00017.50
8.2.60.0040.00417.80
8.2.50.0060.00318.07
8.2.40.0030.00619.79
8.2.30.0030.00618.27
8.2.20.0040.00417.76
8.2.10.0000.00718.04
8.2.00.0080.00017.67
8.1.280.0130.00325.92
8.1.270.0050.00323.64
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0090.00023.96
8.1.230.0040.00719.01
8.1.220.0080.00017.79
8.1.210.0080.00418.77
8.1.200.0000.00817.35
8.1.190.0090.00017.23
8.1.180.0000.00718.10
8.1.170.0080.00018.65
8.1.160.0040.00422.02
8.1.150.0000.00718.63
8.1.140.0050.00217.30
8.1.130.0000.00717.74
8.1.120.0000.00717.52
8.1.110.0040.00417.35
8.1.100.0040.00417.41
8.1.90.0080.00017.47
8.1.80.0000.00817.35
8.1.70.0000.00717.44
8.1.60.0000.00917.59
8.1.50.0080.00017.56
8.1.40.0090.00017.43
8.1.30.0030.00517.63
8.1.20.0040.00417.52
8.1.10.0000.00717.48
8.1.00.0000.00817.39
8.0.300.0080.00018.77
8.0.290.0070.00016.88
8.0.280.0070.00018.36
8.0.270.0070.00017.21
8.0.260.0030.00317.20
8.0.250.0030.00317.06
8.0.240.0030.00317.06
8.0.230.0030.00317.02
8.0.220.0040.00416.94
8.0.210.0100.00016.98
8.0.200.0060.00016.88
8.0.190.0030.00617.00
8.0.180.0080.00017.03
8.0.170.0030.00516.96
8.0.160.0040.00416.90
8.0.150.0030.00317.00
8.0.140.0000.00916.81
8.0.130.0030.00313.45
8.0.120.0040.00416.81
8.0.110.0000.00716.96
8.0.100.0000.00716.86
8.0.90.0040.00416.84
8.0.80.0070.00717.02
8.0.70.0070.00016.96
8.0.60.0070.00016.90
8.0.50.0040.00416.79
8.0.30.0110.01016.99
8.0.20.0070.01017.40
8.0.10.0050.00216.96
8.0.00.0120.00816.92
7.4.330.0050.00015.09
7.4.320.0000.00716.46
7.4.300.0000.00716.50
7.4.290.0040.00416.61
7.4.280.0060.00616.64
7.4.270.0030.00316.43
7.4.260.0000.01016.52
7.4.250.0040.00416.52
7.4.240.0000.00716.52
7.4.230.0000.00716.68
7.4.220.0060.01216.56
7.4.210.0040.01116.59
7.4.200.0070.00016.63
7.4.190.0030.00316.55
7.4.160.0130.00416.34
7.4.150.0030.01417.40
7.4.140.0180.00317.86
7.4.130.0140.00616.46
7.4.120.0060.01416.56
7.4.110.0090.00916.51
7.4.100.0040.01316.25
7.4.90.0080.00816.44
7.4.80.0170.00719.39
7.4.70.0130.00316.69
7.4.60.0070.01016.57
7.4.50.0050.00316.31
7.4.40.0060.01016.40
7.4.30.0060.00916.38
7.4.00.0070.00714.79
7.3.330.0050.00313.24
7.3.320.0000.00513.16
7.3.310.0000.00716.25
7.3.300.0070.00016.30
7.3.290.0090.00616.30
7.3.280.0070.00916.31
7.3.270.0090.00917.40
7.3.260.0070.01016.53
7.3.250.0120.00816.42
7.3.240.0110.01116.48
7.3.230.0100.00716.63
7.3.210.0130.00316.36
7.3.200.0130.00719.39
7.3.190.0110.00716.52
7.3.180.0100.00616.45
7.3.170.0110.00616.66
7.3.160.0120.00316.19
7.3.120.0020.01214.79
7.3.10.0060.00916.46
7.3.00.0080.00616.61
7.2.330.0080.00916.62
7.2.320.0130.00316.67
7.2.310.0030.01416.47
7.2.300.0130.00716.76
7.2.290.0090.01216.56
7.2.130.0000.01416.63
7.2.120.0070.00716.89
7.2.110.0000.00916.98
7.2.100.0060.01016.76
7.2.90.0040.01116.55
7.2.80.0000.01416.80
7.2.70.0050.00517.02
7.2.60.0040.00916.74
7.2.50.0000.01217.00
7.2.40.0070.00316.81
7.2.30.0070.00716.94
7.2.20.0110.00016.89
7.2.10.0030.01216.99
7.2.00.0080.00518.06
7.1.250.0030.01015.73
7.1.200.0100.00015.53
7.1.100.0080.00318.41
7.1.70.0100.00017.21
7.1.60.0030.00919.70
7.1.50.0040.01816.98
7.1.00.0030.07722.51
7.0.200.0050.00316.65
7.0.140.0130.06722.08
7.0.60.0070.04019.78
7.0.50.0100.07717.82
7.0.40.0070.06720.26
7.0.30.0470.04320.04
7.0.20.0300.07020.20
7.0.10.0200.06020.09
7.0.00.0200.04320.30
5.6.280.0130.06321.12
5.6.210.0100.08020.64
5.6.200.0000.09318.13
5.6.190.0070.08720.35
5.6.180.0100.07320.77
5.6.170.0270.05320.48
5.6.160.0070.04020.54
5.6.150.0070.08318.21
5.6.140.0070.03718.18
5.6.130.0070.05018.09
5.6.120.0030.04720.98
5.6.110.0070.07721.01
5.6.100.0070.07720.88
5.6.90.0070.08021.02
5.6.80.0000.04020.40
5.6.70.0230.07320.41
5.5.350.0030.08320.38
5.5.340.0070.07718.00
5.5.330.0270.06020.25
5.5.320.0330.07320.41
5.5.310.0170.04020.13
5.5.300.0000.04317.92
5.5.290.0030.08018.01
5.5.280.0000.05320.80
5.5.270.0130.06320.65
5.5.260.0170.06020.89
5.5.250.0130.06720.66
5.5.240.0070.07720.24
5.4.450.0170.05326.12
5.4.440.0330.04026.11
5.4.430.0230.04726.08
5.4.420.0400.04026.08
5.4.410.0330.04328.28
5.4.400.0230.04025.53
5.4.390.0330.04725.31
5.4.380.0270.05318.71
5.4.370.0230.05718.62
5.4.360.0230.05318.50
5.4.350.0270.06018.64
5.4.340.0330.05018.50
5.4.320.0040.04212.45
5.4.310.0080.04712.45
5.4.300.0060.04112.45
5.4.290.0060.04512.45
5.4.280.0050.03712.35
5.4.270.0030.03912.35
5.4.260.0060.04012.35
5.4.250.0070.03912.35
5.4.240.0060.03812.35
5.4.230.0060.03812.34
5.4.220.0080.03512.34
5.4.210.0040.03812.34
5.4.200.0070.03912.34
5.4.190.0050.04112.34
5.4.180.0080.05512.34
5.4.170.0060.05412.35
5.4.160.0060.05312.35
5.4.150.0080.04412.34
5.4.140.0080.04412.03
5.4.130.0060.03512.02
5.4.120.0070.03611.97
5.4.110.0120.03311.96
5.4.100.0070.03511.96
5.4.90.0090.03511.97
5.4.80.0050.04111.96
5.4.70.0080.03411.96
5.4.60.0040.03711.96
5.4.50.0100.03311.96
5.4.40.0090.03711.95
5.4.30.0060.03911.95
5.4.20.0080.03911.95
5.4.10.0060.04411.95
5.4.00.0090.03711.43
5.3.290.0070.05212.80
5.3.280.0090.04512.71
5.3.270.0120.03512.73
5.3.260.0110.05412.72
5.3.250.0050.05712.72
5.3.240.0080.05512.72
5.3.230.0070.05412.71
5.3.220.0100.03812.68
5.3.210.0070.04412.68
5.3.200.0090.05212.68
5.3.190.0080.05112.68
5.3.180.0100.05112.67
5.3.170.0050.05612.67
5.3.160.0040.04912.68
5.3.150.0060.03712.67
5.3.140.0100.03612.66
5.3.130.0070.06012.66
5.3.120.0060.05112.66
5.3.110.0100.03812.66
5.3.100.0060.03712.12
5.3.90.0070.04012.08
5.3.80.0050.03812.07
5.3.70.0060.03612.07
5.3.60.0090.03512.06
5.3.50.0080.03612.00
5.3.40.0040.04112.00
5.3.30.0050.03711.95
5.3.20.0040.03811.73
5.3.10.0040.03911.69
5.3.00.0060.03811.68
5.2.170.0030.0369.18
5.2.160.0070.0289.18
5.2.150.0090.0439.18
5.2.140.0110.0389.18
5.2.130.0060.0319.14
5.2.120.0020.0339.14
5.2.110.0030.0339.14
5.2.100.0060.0319.14
5.2.90.0060.0299.14
5.2.80.0080.0409.13
5.2.70.0100.0369.14
5.2.60.0040.0339.09
5.2.50.0060.0319.06
5.2.40.0040.0309.03
5.2.30.0050.0299.01
5.2.20.0070.0279.00
5.2.10.0090.0298.93
5.2.00.0080.0318.80
5.1.60.0030.0258.08
5.1.50.0040.0268.08
5.1.40.0040.0258.06
5.1.30.0040.0278.41
5.1.20.0060.0248.43
5.1.10.0030.0278.16
5.1.00.0060.0248.16
5.0.50.0020.0226.64
5.0.40.0080.0156.49
5.0.30.0030.0326.30
5.0.20.0030.0196.27
5.0.10.0020.0216.25
5.0.00.0040.0306.24
4.4.90.0040.0184.78
4.4.80.0030.0154.75
4.4.70.0030.0154.75
4.4.60.0010.0174.75
4.4.50.0020.0174.77
4.4.40.0020.0284.71
4.4.30.0030.0164.76
4.4.20.0020.0174.84
4.4.10.0050.0144.84
4.4.00.0000.0284.76
4.3.110.0050.0134.66
4.3.100.0010.0174.67
4.3.90.0040.0134.64
4.3.80.0030.0254.58
4.3.70.0030.0154.63
4.3.60.0010.0174.63
4.3.50.0020.0174.63
4.3.40.0040.0254.54
4.3.30.0020.0173.30
4.3.20.0030.0153.27
4.3.10.0010.0163.23
4.3.00.0030.02028.28

preferences:
43.6 ms | 401 KiB | 5 Q