3v4l.org

run code in 300+ PHP versions simultaneously
<?php $row = new stdClass; $field_name = 'field_my_field'; $delta = 0; $row->{$field_name} = array(); $row->{$field_name}[$delta] = 'value'; // This works just fine. echo 'field_name by itself: ' . $row->$field_name[0]; $row->{$field_name . ':title'}[$delta] = 'value'; // This doesn't work. echo "\n1: " . $row->$field_name[0];

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.01116.62
8.3.50.0040.01118.05
8.3.40.0090.00618.67
8.3.30.0210.00018.89
8.3.20.0040.00720.17
8.3.10.0070.00023.56
8.3.00.0080.00019.38
8.2.180.0160.00316.50
8.2.170.0190.00022.96
8.2.160.0070.00720.34
8.2.150.0000.00724.18
8.2.140.0070.00024.66
8.2.130.0000.00917.63
8.2.120.0000.00726.35
8.2.110.0090.00020.56
8.2.100.0120.00017.91
8.2.90.0000.00819.41
8.2.80.0040.00417.97
8.2.70.0040.00417.50
8.2.60.0030.00617.93
8.2.50.0000.00818.07
8.2.40.0040.00419.39
8.2.30.0040.00420.52
8.2.20.0000.00917.76
8.2.10.0030.00518.10
8.2.00.0000.00718.11
8.1.280.0150.00025.92
8.1.270.0050.00322.15
8.1.260.0000.00728.09
8.1.250.0080.00028.09
8.1.240.0070.00323.78
8.1.230.0040.00723.99
8.1.220.0040.00417.74
8.1.210.0000.00918.77
8.1.200.0090.00017.23
8.1.190.0000.00817.35
8.1.180.0040.00418.10
8.1.170.0050.00319.03
8.1.160.0030.00422.04
8.1.150.0040.00418.94
8.1.140.0000.00819.58
8.1.130.0070.00017.75
8.1.120.0040.00417.48
8.1.110.0080.00217.42
8.1.100.0020.00517.41
8.1.90.0030.00517.46
8.1.80.0000.00817.49
8.1.70.0070.00017.42
8.1.60.0080.00017.64
8.1.50.0080.00017.55
8.1.40.0000.00817.49
8.1.30.0030.00517.70
8.1.20.0040.00417.56
8.1.10.0040.00417.55
8.1.00.0040.00417.41
8.0.300.0050.00218.77
8.0.290.0020.00516.58
8.0.280.0070.00018.37
8.0.270.0000.00717.18
8.0.260.0000.00717.19
8.0.250.0000.00716.96
8.0.240.0000.00816.88
8.0.230.0080.00017.03
8.0.220.0040.00416.79
8.0.210.0030.00416.94
8.0.200.0030.00316.87
8.0.190.0000.00716.93
8.0.180.0080.00016.85
8.0.170.0040.00816.88
8.0.160.0030.00516.90
8.0.150.0040.00416.83
8.0.140.0060.00616.75
8.0.130.0030.00313.33
8.0.120.0040.00416.83
8.0.110.0030.00516.93
8.0.100.0000.00816.95
8.0.90.0000.00716.93
8.0.80.0070.01416.86
8.0.70.0040.00416.81
8.0.60.0070.00016.86
8.0.50.0030.00516.68
8.0.30.0110.01117.15
8.0.20.0120.00817.40
8.0.10.0020.00517.11
8.0.00.0080.01116.79
7.4.330.0000.00516.76
7.4.320.0060.00016.47
7.4.300.0000.00616.46
7.4.290.0000.00716.36
7.4.280.0040.00416.54
7.4.270.0030.00316.52
7.4.260.0000.00716.45
7.4.250.0000.00816.52
7.4.240.0020.00516.59
7.4.230.0000.00716.20
7.4.220.0110.01516.52
7.4.210.0040.01016.50
7.4.200.0030.00316.64
7.4.160.0090.00916.52
7.4.150.0100.00717.40
7.4.140.0080.01417.86
7.4.130.0110.00716.58
7.4.120.0100.01016.59
7.4.110.0090.00916.57
7.4.100.0140.00616.50
7.4.90.0150.00616.34
7.4.80.0150.00919.39
7.4.70.0150.00616.62
7.4.60.0040.01216.46
7.4.50.0030.01216.48
7.4.40.0150.00316.61
7.4.30.0090.00916.29
7.4.00.0110.00614.88
7.3.330.0000.00713.17
7.3.320.0030.00313.25
7.3.310.0000.00716.23
7.3.300.0030.00316.18
7.3.290.0000.00716.32
7.3.280.0070.00816.30
7.3.270.0130.01917.40
7.3.260.0160.00816.59
7.3.240.0130.00516.39
7.3.230.0050.01316.39
7.3.210.0040.01516.48
7.3.200.0060.01016.36
7.3.190.0060.01016.51
7.3.180.0110.00516.24
7.3.170.0100.00616.41
7.3.160.0090.00616.29
7.3.120.0090.00914.69
7.3.110.0090.00614.84
7.3.100.0040.01115.04
7.3.90.0000.00814.98
7.3.80.0040.00414.73
7.3.70.0070.00314.79
7.3.60.0040.00714.84
7.3.50.0070.00714.96
7.3.40.0100.00714.73
7.3.30.0000.01314.59
7.3.20.0070.00716.68
7.3.10.0000.01016.71
7.3.00.0100.00716.64
7.2.330.0070.01116.48
7.2.320.0110.00716.86
7.2.310.0080.01416.81
7.2.300.0100.00716.54
7.2.290.0090.00916.61
7.2.240.0030.00914.78
7.2.230.0120.00315.39
7.2.220.0100.00615.11
7.2.210.0070.00715.05
7.2.200.0030.00714.88
7.2.190.0000.00814.85
7.2.180.0030.01315.18
7.2.170.0070.01115.10
7.2.160.0000.01015.10
7.2.150.0100.00316.83
7.2.140.0090.00316.94
7.2.130.0030.00916.71
7.2.120.0100.00716.99
7.2.110.0060.00916.85
7.2.100.0030.00916.86
7.2.90.0060.00616.75
7.2.80.0000.01216.89
7.2.70.0030.00917.00
7.2.60.0030.01117.12
7.2.50.0110.00416.83
7.2.40.0030.01317.06
7.2.30.0060.00917.14
7.2.20.0090.00316.93
7.2.10.0070.00716.86
7.2.00.0020.01018.20
7.1.330.0060.00615.66
7.1.320.0070.00315.58
7.1.310.0050.00315.80
7.1.300.0040.00415.94
7.1.290.0060.00916.00
7.1.280.0030.01015.95
7.1.270.0070.00716.02
7.1.260.0060.00916.05
7.1.250.0090.00615.80
7.1.200.0030.00615.76
7.1.100.0070.00718.21
7.1.70.0000.00717.17
7.1.60.0030.02019.48
7.1.50.0040.01116.96
7.1.00.0070.07322.48
7.0.200.0000.00716.88
7.0.60.0000.04320.04
7.0.50.0000.08017.82
7.0.40.0130.04320.04
7.0.30.0270.08020.13
7.0.20.0430.06320.19
7.0.10.0030.08320.29
7.0.00.0100.08319.99
5.6.280.0030.07021.07
5.6.210.0070.06020.69
5.6.200.0030.08318.22
5.6.190.0070.08320.28
5.6.180.0430.06020.77
5.6.170.0270.07720.51
5.6.160.0030.05720.61
5.6.150.0130.07018.22
5.6.140.0030.05718.10
5.6.130.0030.04718.18
5.6.120.0100.08321.10
5.6.110.0070.05321.11
5.6.100.0130.04021.10
5.6.90.0030.04320.96
5.6.80.0270.06720.39
5.5.350.4300.03720.52
5.5.340.0070.07317.88
5.5.330.0070.05320.57
5.5.320.0230.03720.50
5.5.310.0170.04320.33
5.5.300.0070.04718.00
5.5.290.0000.04717.97
5.5.280.0170.07720.88
5.5.270.0100.08020.67
5.5.260.0070.07020.76
5.5.250.0030.04020.70
5.5.240.0270.06720.26

preferences:
85.6 ms | 400 KiB | 5 Q