3v4l.org

run code in 300+ PHP versions simultaneously
<?php //function Multidimentional Array function barang (){ $charles = [["nama_barang"=>"Laptop","harga"=>15000,"Qty"=>100,"Kondisi"=>"Baik"],["nama_barang"=>"Dekstop","harga"=>30000,"Qty"=>30,"Kondisi"=>"Buruk"], ["nama_barang"=>"Smartphone","harga"=>40000,"Qty"=>20,"Kondisi"=>"Baik Sekali"]]; return $charles; } //Print the result of Multidimentional Array called from function echo '"' .barang()[0]['nama_barang'] . '" ,' . barang()[0]['harga'] . ' ,' . barang()[0]['Qty'] . ' , ' . barang()[0]['Kondisi']; ?>

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.4.120.0110.00922.52
8.4.110.0050.00722.57
8.4.100.0120.00917.69
8.4.90.0110.00920.59
8.4.80.0110.00920.67
8.4.70.0120.00717.75
8.4.60.0120.00418.58
8.4.50.0110.00920.45
8.4.40.0140.00719.37
8.4.30.0110.00817.75
8.4.20.0130.00720.82
8.4.10.0060.00317.59
8.3.250.0080.01118.64
8.3.240.0150.00516.51
8.3.230.0120.00816.76
8.3.220.0090.01019.12
8.3.210.0050.01416.80
8.3.200.0070.00216.58
8.3.190.0100.00916.98
8.3.180.0110.00916.86
8.3.170.0110.00717.06
8.3.160.0070.01118.44
8.3.150.0150.00417.17
8.3.140.0000.00817.04
8.3.130.0090.00022.28
8.3.120.0090.00920.67
8.3.110.0080.00020.94
8.3.100.0040.00424.06
8.3.90.0070.01126.77
8.3.80.0030.00618.56
8.3.70.0120.00316.38
8.3.60.0060.01218.55
8.3.50.0160.00420.16
8.3.40.0090.00618.66
8.3.30.0120.00318.75
8.3.20.0040.00420.94
8.3.10.0000.00821.90
8.3.00.0070.00323.43
8.2.290.0100.00916.84
8.2.280.0140.00418.41
8.2.270.0120.00617.16
8.2.260.0040.00416.38
8.2.250.0080.00016.44
8.2.240.0060.00317.17
8.2.230.0090.00022.58
8.2.220.0040.01237.54
8.2.210.0080.00026.77
8.2.200.0080.00016.50
8.2.190.0090.00616.63
8.2.180.0100.00718.23
8.2.170.0120.00322.96
8.2.160.0100.00720.23
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0030.00619.71
8.2.120.0050.00326.35
8.2.110.0060.00321.14
8.2.100.0090.00317.60
8.2.90.0070.00318.27
8.2.80.0000.00917.97
8.2.70.0080.00017.93
8.2.60.0030.00618.16
8.2.50.0000.00918.10
8.2.40.0040.00419.13
8.2.30.0040.00420.68
8.2.20.0070.00018.17
8.2.10.0070.00019.38
8.2.00.0040.00418.05
8.1.330.0120.00616.46
8.1.320.0120.00816.04
8.1.310.0070.01018.47
8.1.300.0050.00518.44
8.1.290.0050.00530.84
8.1.280.0070.00725.92
8.1.270.0040.00422.03
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00319.33
8.1.230.0040.00820.97
8.1.220.0080.00017.76
8.1.210.0030.00518.95
8.1.200.0030.00717.22
8.1.190.0060.00317.35
8.1.180.0000.00818.10
8.1.170.0040.00418.61
8.1.160.0040.00418.88
8.1.150.0000.00718.79
8.1.140.0030.00318.91
8.1.130.0030.00320.16
8.1.120.0030.00517.45
8.1.110.0030.00517.34
8.1.100.0040.00417.49
8.1.90.0000.00817.33
8.1.80.0030.00617.51
8.1.70.0040.00417.27
8.1.60.0000.00817.61
8.1.50.0000.00817.48
8.1.40.0030.00617.37
8.1.30.0080.00017.59
8.1.20.0080.00417.70
8.1.10.0050.00217.55
8.1.00.0060.00517.49
8.0.300.0080.00019.89
8.0.290.0060.00316.63
8.0.280.0000.00718.29
8.0.270.0070.00316.86
8.0.260.0030.00318.37
8.0.250.0000.00716.93
8.0.240.0000.00817.01
8.0.230.0030.00516.81
8.0.220.0070.00016.85
8.0.210.0050.00216.83
8.0.200.0000.00716.83
8.0.190.0040.00416.93
8.0.180.0070.00016.88
8.0.170.0030.00616.90
8.0.160.0050.00216.88
8.0.150.0040.00416.86
8.0.140.0040.00416.86
8.0.130.0000.00713.27
8.0.120.0040.00416.91
8.0.110.0050.00316.84
8.0.100.0030.00516.72
8.0.90.0000.00716.91
8.0.80.0090.01216.93
8.0.70.0040.00416.95
8.0.60.0070.00016.75
8.0.50.0000.00716.90
8.0.30.0130.00417.18
8.0.20.0090.00917.05
8.0.10.0070.00016.82
8.0.00.0070.01416.74
7.4.330.0000.00516.55
7.4.320.0000.00616.63
7.4.300.0030.00316.55
7.4.290.0030.00316.59
7.4.280.0050.00316.57
7.4.270.0030.00316.50
7.4.260.0070.00016.57
7.4.250.0000.00716.47
7.4.240.0030.00516.51
7.4.230.0030.00316.49
7.4.220.0030.00516.58
7.4.210.0070.01216.53
7.4.200.0070.00016.69
7.4.160.0120.00616.44
7.4.140.0130.00817.86
7.4.130.0110.00616.55
7.4.120.0130.00716.54
7.4.110.0100.00716.53
7.4.100.0060.01016.71
7.4.90.0070.01016.54
7.4.80.0030.01319.39
7.4.70.0100.00716.22
7.4.60.0000.01616.40
7.4.50.0030.01116.46
7.4.40.0120.00916.54
7.4.00.0080.00814.93
7.3.330.0050.00013.15
7.3.320.0060.00013.30
7.3.310.0070.00016.30
7.3.300.0000.00816.21
7.3.290.0000.00816.34
7.3.280.0070.01416.26
7.3.260.0100.01416.40
7.3.240.0080.00916.35
7.3.230.0060.01216.39
7.3.210.0110.00516.25
7.3.200.0040.01616.46
7.3.190.0060.00916.27
7.3.180.0100.00716.28
7.3.170.0070.01016.31
7.3.160.0100.00616.56
7.3.120.0070.00814.72
7.3.110.0070.01014.58
7.3.100.0060.00914.96
7.3.90.0120.00814.67
7.3.80.0070.00714.80
7.3.70.0070.00714.83
7.3.60.0070.00714.70
7.3.50.0060.01014.89
7.3.40.0090.00414.70
7.3.30.0050.00614.78
7.3.20.0050.00716.63
7.3.10.0130.00016.54
7.3.00.0130.00716.64
7.2.330.0220.00016.79
7.2.320.0100.01316.79
7.2.310.0080.00816.67
7.2.300.0100.00616.46
7.2.290.0150.00316.86
7.2.250.0070.01115.26
7.2.240.0060.01215.25
7.2.230.0070.01014.76
7.2.220.0150.00615.00
7.2.210.0070.00315.08
7.2.200.0030.00614.80
7.2.190.0070.00714.82
7.2.180.0100.00315.02
7.2.170.0100.00915.04
7.2.160.0030.00714.95
7.2.150.0040.00816.70
7.2.140.0090.01116.79
7.2.130.0100.00516.86
7.2.120.0100.01316.94
7.2.110.0160.00616.95
7.2.100.0030.01016.96
7.2.90.0130.00716.93
7.2.80.0060.01016.88
7.2.70.0130.00516.98
7.2.60.0060.00616.72
7.2.50.0030.00816.78
7.2.40.0160.00616.86
7.2.30.0060.00916.79
7.2.20.0150.00616.70
7.2.10.0030.00916.99
7.2.00.0130.00016.61
7.1.330.0070.00715.83
7.1.320.0030.00616.01
7.1.310.0100.00315.61
7.1.300.0030.01315.75
7.1.290.0060.00615.75
7.1.280.0060.00615.74
7.1.270.0040.00815.60
7.1.260.0080.00815.57
7.1.250.0140.00715.55

preferences:
27.27 ms | 403 KiB | 5 Q