3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array( array( 'DeviceName' => 'Device1', 'DeviceId' => '', 'state' => 0 ), array( 'DeviceName' => 'Device2', 'DeviceId' => '', 'state' => 1 ), array( 'DeviceName' => 'Device3', 'DeviceId' => '', 'state' => 0 ), ); echo '<pre>'; print_r($array);

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.0150.00016.38
8.3.50.0150.00016.53
8.3.40.0000.01418.85
8.3.30.0140.00018.59
8.3.20.0050.00220.13
8.3.10.0030.00521.58
8.3.00.0050.00317.50
8.2.180.0160.00016.50
8.2.170.0070.01022.96
8.2.160.0070.00720.29
8.2.150.0080.00024.18
8.2.140.0050.00224.66
8.2.130.0040.00420.28
8.2.120.0080.00026.35
8.2.110.0080.00019.26
8.2.100.0070.00417.91
8.2.90.0050.00317.63
8.2.80.0030.00517.97
8.2.70.0000.00817.91
8.2.60.0040.00418.03
8.2.50.0040.00418.05
8.2.40.0080.00019.36
8.2.30.0040.00421.02
8.2.20.0000.00717.86
8.2.10.0080.00017.96
8.2.00.0080.00017.92
8.1.280.0120.00925.92
8.1.270.0080.00022.12
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0000.00919.46
8.1.230.0090.00320.86
8.1.220.0000.00917.74
8.1.210.0040.00418.77
8.1.200.0030.00617.10
8.1.190.0000.00917.22
8.1.180.0030.00618.10
8.1.170.0000.00717.62
8.1.160.0040.00419.00
8.1.150.0050.00320.66
8.1.140.0000.00719.41
8.1.130.0030.00318.73
8.1.120.0000.00717.34
8.1.110.0000.00717.41
8.1.100.0030.00517.27
8.1.90.0040.00617.27
8.1.80.0050.00217.29
8.1.70.0030.00317.27
8.1.60.0030.00517.51
8.1.50.0000.00817.39
8.1.40.0030.00517.43
8.1.30.0070.00017.51
8.1.20.0000.00717.48
8.1.10.0040.00417.55
8.1.00.0030.00617.30
8.0.300.0050.00318.77
8.0.290.0000.00816.63
8.0.280.0000.00718.38
8.0.270.0030.00317.16
8.0.260.0060.00016.85
8.0.250.0030.00316.86
8.0.240.0050.00516.89
8.0.230.0070.00316.86
8.0.220.0040.00416.83
8.0.210.0050.00216.76
8.0.200.0030.00316.87
8.0.190.0000.01016.77
8.0.180.0030.00616.85
8.0.170.0030.00316.86
8.0.160.0040.00416.71
8.0.150.0040.00416.86
8.0.140.0000.00716.84
8.0.130.0030.00313.25
8.0.120.0050.00316.74
8.0.110.0000.00716.70
8.0.100.0050.00216.80
8.0.90.0000.00816.88
8.0.80.0040.01116.84
8.0.70.0000.00816.77
8.0.60.0070.00016.75
8.0.50.0000.00716.68
8.0.30.0060.01017.04
8.0.20.0080.01217.40
8.0.10.0000.00816.97
8.0.00.0070.01016.87
7.4.330.0050.00015.55
7.4.320.0030.00316.44
7.4.300.0070.00016.57
7.4.290.0030.00316.44
7.4.280.0050.00316.51
7.4.270.0070.00016.48
7.4.260.0070.00016.51
7.4.250.0070.00016.49
7.4.240.0030.00316.38
7.4.230.0070.00016.36
7.4.220.0060.01316.47
7.4.210.0040.01116.53
7.4.200.0000.00716.28
7.4.160.0060.01316.38
7.4.150.0150.00417.40
7.4.140.0090.00817.86
7.4.130.0070.01016.32
7.4.120.0120.00516.53
7.4.110.0060.01016.36
7.4.100.0060.01216.36
7.4.90.0150.00916.35
7.4.80.0070.01019.39
7.4.70.0130.00316.41
7.4.60.0060.01016.42
7.4.50.0030.01316.46
7.4.40.0070.01016.42
7.4.30.0090.00616.35
7.4.00.0070.00715.03
7.3.330.0050.00013.11
7.3.320.0060.00012.93
7.3.310.0070.00016.21
7.3.300.0030.00315.98
7.3.290.0110.00416.16
7.3.280.0110.00716.12
7.3.270.0190.00317.40
7.3.260.0070.01116.24
7.3.250.0110.00616.22
7.3.240.0110.00916.20
7.3.230.0170.00016.25
7.3.210.0070.01016.50
7.3.200.0040.01216.43
7.3.190.0080.00816.31
7.3.180.0060.00916.40
7.3.170.0030.01216.28
7.3.160.0100.00616.30
7.3.120.0080.00514.37
7.3.110.0070.00714.43
7.3.100.0070.00714.38
7.3.90.0110.00014.57
7.3.80.0080.00014.23
7.3.70.0090.00314.71
7.3.60.0100.00314.34
7.3.50.0040.00714.66
7.3.40.0000.01114.67
7.3.30.0000.01114.60
7.3.20.0060.00916.58
7.3.10.0030.00616.40
7.3.00.0070.00716.53
7.2.330.0080.01216.44
7.2.320.0060.01016.50
7.2.310.0060.01216.57
7.2.300.0070.01616.58
7.2.290.0040.01316.21
7.2.240.0040.00814.55
7.2.230.0030.01215.01
7.2.220.0030.00714.98
7.2.210.0030.01014.82
7.2.200.0000.01314.89
7.2.190.0140.00315.01
7.2.180.0000.01214.92
7.2.170.0030.01214.63
7.2.160.0030.01214.66
7.2.150.0040.00816.70
7.2.140.0120.00316.86
7.2.130.0090.00616.80
7.2.120.0100.01016.71
7.2.110.0060.00616.76
7.2.100.0070.01316.55
7.2.90.0060.00916.56
7.2.80.0080.00316.75
7.2.70.0000.01416.80
7.2.60.0040.01316.49
7.2.50.0100.00316.70
7.2.40.0100.00016.77
7.2.30.0100.00316.75
7.2.20.0070.00716.82
7.2.10.0000.01716.82
7.2.00.0020.01517.99
7.1.330.0070.00315.68
7.1.320.0040.00415.59
7.1.310.0030.01315.50
7.1.300.0000.00915.43
7.1.290.0110.00315.48
7.1.280.0110.00415.48
7.1.270.0060.00915.61
7.1.260.0100.00715.68
7.1.250.0040.00815.35
7.1.200.0040.00815.20
7.1.100.0000.01118.09
7.1.70.3930.01315.37
7.1.60.2700.01033.06
7.1.50.2400.01032.83
7.1.40.2270.00732.54
7.1.30.2830.01732.43
7.1.20.2270.01732.87
7.1.10.2470.01314.76
7.1.00.2130.01314.99
7.0.200.2730.01014.81
7.0.190.2570.01014.80
7.0.180.1900.01014.46
7.0.170.3170.01014.37
7.0.160.3170.01714.25
7.0.150.2030.01714.34
7.0.140.2270.01014.31
7.0.130.2100.01714.68
7.0.120.2030.01314.68
7.0.110.2170.00714.36
7.0.100.1870.01014.34
7.0.90.2470.01714.64
7.0.80.2130.01714.25
7.0.70.2570.00714.60
7.0.60.3300.01314.00
7.0.50.3200.00714.43
7.0.40.3830.01314.70
7.0.30.3170.01314.56
7.0.20.3370.01014.74
7.0.10.3070.01314.62
7.0.00.3300.01014.34

preferences:
51.15 ms | 401 KiB | 5 Q