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 $value; }

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.70.0100.01018.68
8.3.60.0110.00718.55
8.3.50.0090.00522.04
8.3.40.0120.00318.83
8.3.30.0110.00418.80
8.3.20.0000.00720.16
8.3.10.0040.00423.61
8.3.00.0000.00819.14
8.2.180.0140.00016.50
8.2.170.0110.01122.96
8.2.160.0070.01020.29
8.2.150.0070.00024.18
8.2.140.0050.00324.66
8.2.130.0050.00226.16
8.2.120.0040.00819.24
8.2.110.0070.00321.12
8.2.100.0090.00317.91
8.2.90.0040.00419.23
8.2.80.0030.00517.97
8.2.70.0060.00317.63
8.2.60.0000.00818.03
8.2.50.0030.00618.07
8.2.40.0000.00818.22
8.2.30.0090.00018.23
8.2.20.0040.00417.59
8.2.10.0000.00718.15
8.2.00.0070.00017.80
8.1.280.0100.00625.92
8.1.270.0030.00523.61
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0000.01022.14
8.1.230.0000.01119.00
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0000.00917.35
8.1.190.0000.01017.23
8.1.180.0080.00018.10
8.1.170.0040.00418.50
8.1.160.0040.00421.91
8.1.150.0040.00418.60
8.1.140.0040.00417.32
8.1.130.0000.00717.87
8.1.120.0000.00717.37
8.1.110.0000.00717.46
8.1.100.0040.00417.45
8.1.90.0040.00417.51
8.1.80.0040.00417.46
8.1.70.0000.00717.37
8.1.60.0040.00417.60
8.1.50.0040.00417.57
8.1.40.0000.00717.55
8.1.30.0040.00417.63
8.1.20.0040.00417.56
8.1.10.0040.00417.55
8.1.00.0020.00517.46
8.0.300.0070.00020.08
8.0.290.0000.00816.75
8.0.280.0000.00718.44
8.0.270.0030.00316.75
8.0.260.0030.00317.32
8.0.250.0040.00417.00
8.0.240.0000.00617.03
8.0.230.0070.00017.02
8.0.220.0030.00317.00
8.0.210.0030.00616.83
8.0.200.0030.00316.98
8.0.190.0000.00816.88
8.0.180.0000.00716.98
8.0.170.0050.00316.94
8.0.160.0020.00516.91
8.0.150.0070.00016.96
8.0.140.0000.00816.99
8.0.130.0030.00313.45
8.0.120.0040.00416.95
8.0.110.0000.00716.92
8.0.100.0040.00416.99
8.0.90.0030.00316.76
8.0.80.0060.00917.00
8.0.70.0040.00416.98
8.0.60.0080.00016.95
8.0.50.0030.00516.90
8.0.30.0080.01216.93
8.0.20.0140.00617.40
8.0.10.0080.00016.89
8.0.00.0110.01116.80
7.4.330.0000.00615.00
7.4.320.0060.00016.50
7.4.300.0060.00016.57
7.4.290.0000.00816.64
7.4.280.0060.00416.57
7.4.270.0000.00816.57
7.4.260.0040.00716.38
7.4.250.0040.00416.42
7.4.240.0020.00516.55
7.4.230.0000.00716.34
7.4.220.0160.00816.64
7.4.210.0100.00616.45
7.4.200.0000.00716.34
7.4.190.0030.00316.51
7.4.160.0030.01316.38
7.4.150.0150.00317.40
7.4.140.0110.00717.86
7.4.130.0100.00716.46
7.4.120.0120.00616.52
7.4.110.0120.00916.56
7.4.100.0110.00816.40
7.4.90.0080.00816.48
7.4.80.0130.00319.39
7.4.70.0140.00816.68
7.4.60.0030.01416.33
7.4.50.0000.00716.31
7.4.40.0060.01016.42
7.4.30.0110.00516.49
7.4.00.0080.00814.68
7.3.330.0000.00713.07
7.3.320.0030.00313.22
7.3.310.0000.00716.39
7.3.300.0030.00316.35
7.3.290.0110.00716.32
7.3.280.0080.00916.31
7.3.270.0080.00817.40
7.3.260.0200.00716.57
7.3.250.0150.00616.40
7.3.240.0060.01616.50
7.3.230.0100.00816.62
7.3.210.0100.01016.50
7.3.200.0130.00419.39
7.3.190.0090.00916.25
7.3.180.0100.00616.48
7.3.170.0100.00716.51
7.3.160.0160.00616.46
7.3.120.0100.00714.84
7.3.10.0160.00315.98
7.3.00.0150.00815.78
7.2.330.0070.01116.39
7.2.320.0060.01116.67
7.2.310.0090.00916.39
7.2.300.0150.00616.49
7.2.290.0070.01116.65
7.2.130.0150.00816.07
7.2.120.0100.01316.25
7.2.110.0140.00716.12
7.2.100.0150.00316.65
7.2.90.0140.00716.90
7.2.80.0100.01016.04
7.2.70.0110.00616.65
7.2.60.0060.01616.05
7.2.50.0120.00616.52
7.2.40.0140.01216.85
7.2.30.0150.00315.97
7.2.20.0140.00516.52
7.2.10.0140.00416.23
7.2.00.0080.00617.93
7.1.250.0150.00715.73
7.1.100.0050.00518.04
7.1.70.0000.00717.03
7.1.60.0070.01419.70
7.1.50.0090.00916.78
7.1.00.0100.07022.36
7.0.200.0040.00416.84
7.0.140.0030.07322.12
7.0.60.0070.05720.00
7.0.50.0070.03717.89
7.0.40.0100.03720.41
7.0.30.0400.06720.17
7.0.20.0400.03020.04
7.0.10.0030.05019.99
7.0.00.0030.05020.16
5.6.280.0070.07020.77
5.6.210.0070.04020.45
5.6.200.0100.06318.16
5.6.190.0000.04720.35
5.6.180.0230.03720.62
5.6.170.0170.04720.54
5.6.160.0000.06320.61
5.6.150.0070.05018.22
5.6.140.0100.07718.21
5.6.130.0070.08318.11
5.6.120.0070.05321.00
5.6.110.0070.03720.98
5.6.100.0070.07720.95
5.6.90.0200.07320.97
5.6.80.0070.05320.39
5.5.350.0100.04020.44
5.5.340.0070.03717.97
5.5.330.0100.07720.36
5.5.320.0330.07320.29
5.5.310.0100.04720.34
5.5.300.0170.07317.97
5.5.290.0230.06318.03
5.5.280.0130.06320.87
5.5.270.0130.08020.86
5.5.260.0100.06020.67
5.5.250.0030.08720.70
5.5.240.4200.04020.15
5.4.450.0170.04325.28
5.4.440.0170.06020.21
5.4.430.0270.04319.24
5.4.420.0400.04319.40
5.4.410.0400.04319.43
5.4.400.0330.03719.09
5.4.390.0330.03319.13
5.4.380.0330.05718.69
5.4.370.0100.07018.56
5.4.360.0430.03718.63
5.4.350.0330.05718.63
5.4.340.0330.05718.69
5.4.320.0060.03612.46
5.4.310.0060.05112.45
5.4.300.0090.04112.45
5.4.290.0080.04812.45
5.4.280.0050.04112.35
5.4.270.0080.04312.35
5.4.260.0070.03912.35
5.4.250.0080.04112.35
5.4.240.0070.04512.35
5.4.230.0080.03812.34
5.4.220.0150.06712.34
5.4.210.0080.05112.34
5.4.200.0090.06412.34
5.4.190.0120.05312.34
5.4.180.0120.04612.34
5.4.170.0120.06612.35
5.4.160.0070.05112.34
5.4.150.0110.05112.34
5.4.140.0170.08612.02
5.4.130.0120.04412.02
5.4.120.0070.04011.97
5.4.110.0070.04511.97
5.4.100.0070.05411.96
5.4.90.0090.05411.97
5.4.80.0080.03911.97
5.4.70.0100.08511.96
5.4.60.0070.05311.96
5.4.50.0110.03711.96
5.4.40.0020.05611.95
5.4.30.0050.04111.95
5.4.20.0060.04111.95
5.4.10.0080.05611.95
5.4.00.0080.03811.44
5.3.290.0070.03812.80
5.3.280.0080.04112.71
5.3.270.0170.07812.72
5.3.260.0050.04512.72
5.3.250.0080.05212.72
5.3.240.0130.06012.72
5.3.230.0110.06112.71
5.3.220.0050.04112.68
5.3.210.0070.04212.68
5.3.200.0070.04212.68
5.3.190.0100.03812.68
5.3.180.0070.04812.67
5.3.170.0120.05012.67
5.3.160.0060.04212.67
5.3.150.0090.03812.68
5.3.140.0110.05412.66
5.3.130.0100.03812.66
5.3.120.0080.03912.66
5.3.110.0110.05012.66
5.3.100.0050.04012.12
5.3.90.0040.04512.08
5.3.80.0040.03812.07
5.3.70.0050.03912.07
5.3.60.0110.04212.06
5.3.50.0100.04512.00
5.3.40.0130.07212.00
5.3.30.0140.05811.94
5.3.20.0080.06211.73
5.3.10.0130.06011.69
5.3.00.0110.04711.68
5.2.170.0090.0399.18
5.2.160.0040.0429.18
5.2.150.0100.0379.18
5.2.140.0110.0539.18
5.2.130.0130.0369.14
5.2.120.0060.0359.13
5.2.110.0090.0349.14
5.2.100.0050.0439.14
5.2.90.0070.0509.14
5.2.80.0100.0559.14
5.2.70.0060.0449.13
5.2.60.0060.0329.09
5.2.50.0030.0359.06
5.2.40.0070.0449.04
5.2.30.0090.0559.01
5.2.20.0090.0549.00
5.2.10.0080.0448.92
5.2.00.0070.0468.78
5.1.60.0060.0278.07
5.1.50.0050.0268.06
5.1.40.0050.0258.04
5.1.30.0050.0288.39
5.1.20.0030.0358.41
5.1.10.0080.0358.14
5.1.00.0070.0458.14
5.0.50.0080.0536.61
5.0.40.0060.0206.48
5.0.30.0050.0326.29
5.0.20.0020.0236.26
5.0.10.0040.0226.24
5.0.00.0050.0336.23
4.4.90.0060.0194.77
4.4.80.0040.0164.76
4.4.70.0050.0164.75
4.4.60.0080.0324.75
4.4.50.0030.0444.77
4.4.40.0070.0394.71
4.4.30.0090.0304.76
4.4.20.0030.0364.84
4.4.10.0050.0384.85
4.4.00.0080.0544.76
4.3.110.0080.0504.67
4.3.100.0090.0214.66
4.3.90.0060.0314.63
4.3.80.0050.0334.58
4.3.70.0040.0154.63
4.3.60.0010.0184.63
4.3.50.0050.0194.63
4.3.40.0070.0434.54
4.3.30.0040.0143.28
4.3.20.0020.0183.26
4.3.10.0030.0193.21
4.3.00.0030.01718.65

preferences:
31.23 ms | 401 KiB | 5 Q