3v4l.org

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

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.0140.00716.50
8.3.50.0060.01121.96
8.3.40.0180.00018.69
8.3.30.0070.00718.89
8.3.20.0040.00420.16
8.3.10.0040.00423.64
8.3.00.0080.00019.38
8.2.180.0110.01116.75
8.2.170.0040.01122.96
8.2.160.0070.01320.23
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0060.00317.75
8.2.120.0000.00826.35
8.2.110.0030.00719.38
8.2.100.0080.00417.84
8.2.90.0030.00619.34
8.2.80.0030.00617.97
8.2.70.0000.01217.63
8.2.60.0050.00318.04
8.2.50.0040.00418.07
8.2.40.0000.00819.21
8.2.30.0000.00720.69
8.2.20.0050.00517.75
8.2.10.0040.00418.09
8.2.00.0050.00218.13
8.1.280.0070.00725.92
8.1.270.0000.00922.01
8.1.260.0030.00628.09
8.1.250.0050.00328.09
8.1.240.0060.00321.37
8.1.230.0080.00417.42
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0100.00017.35
8.1.190.0000.00917.22
8.1.180.0060.00318.10
8.1.170.0080.00018.95
8.1.160.0040.00422.01
8.1.150.0000.00718.88
8.1.140.0030.00519.49
8.1.130.0080.00017.67
8.1.120.0050.00317.38
8.1.110.0000.01117.50
8.1.100.0040.00417.49
8.1.90.0080.00017.46
8.1.80.0040.00417.49
8.1.70.0000.00717.36
8.1.60.0040.00417.51
8.1.50.0000.00817.54
8.1.40.0000.00817.55
8.1.30.0030.00517.60
8.1.20.0000.00817.55
8.1.10.0040.00417.60
8.1.00.0030.00517.53
8.0.300.0000.00818.77
8.0.290.0040.00416.75
8.0.280.0070.00018.39
8.0.270.0000.00717.11
8.0.260.0040.00417.23
8.0.250.0040.00416.96
8.0.240.0070.00016.80
8.0.230.0030.00317.00
8.0.220.0030.00316.90
8.0.210.0030.00316.91
8.0.200.0030.00316.98
8.0.190.0000.00717.02
8.0.180.0040.00416.96
8.0.170.0030.00616.96
8.0.160.0040.00416.92
8.0.150.0030.00316.80
8.0.140.0030.00816.90
8.0.130.0030.00313.27
8.0.120.0080.00016.84
8.0.110.0080.00016.91
8.0.100.0000.00716.93
8.0.90.0000.00716.85
8.0.80.0130.00916.96
8.0.70.0040.00416.96
8.0.60.0070.00016.76
8.0.50.0060.00316.96
8.0.30.0130.00917.18
8.0.20.0150.00617.40
8.0.10.0040.00417.06
8.0.00.0060.01116.68
7.4.330.0000.00516.87
7.4.320.0030.00316.53
7.4.300.0000.00716.32
7.4.290.0000.00716.36
7.4.280.0070.00016.59
7.4.270.0000.00716.56
7.4.260.0030.00316.53
7.4.250.0040.00416.52
7.4.240.0040.00416.42
7.4.230.0000.00716.30
7.4.220.0080.01316.46
7.4.210.0080.00716.47
7.4.200.0000.00716.34
7.4.160.0040.01116.43
7.4.150.0080.00917.40
7.4.140.0140.00817.86
7.4.130.0110.00616.62
7.4.120.0060.01216.42
7.4.110.0190.00016.41
7.4.100.0150.00616.42
7.4.90.0030.01516.43
7.4.80.0030.01419.39
7.4.70.0090.00916.36
7.4.60.0070.01016.51
7.4.50.0070.01016.48
7.4.40.0170.00316.49
7.4.30.0070.01116.74
7.4.00.0080.00814.91
7.3.330.0080.00013.17
7.3.320.0030.00313.07
7.3.310.0050.00216.22
7.3.300.0020.00516.19
7.3.290.0040.00416.29
7.3.280.0090.00716.30
7.3.270.0070.01017.40
7.3.260.0070.01016.54
7.3.250.0110.00916.33
7.3.240.0100.00916.52
7.3.230.0070.01116.54
7.3.210.0150.00316.46
7.3.200.0060.01116.73
7.3.190.0070.00916.53
7.3.180.0130.01116.50
7.3.170.0130.00316.63
7.3.160.0030.01416.65
7.3.120.0070.01014.91
7.3.110.0070.01114.91
7.3.100.0070.00814.97
7.3.90.0020.00914.66
7.3.80.0050.00814.88
7.3.70.0060.00314.80
7.3.60.0100.00314.80
7.3.50.0040.01014.78
7.3.40.0070.00814.82
7.3.30.0050.00514.77
7.3.20.0010.01116.62
7.3.10.0070.00916.58
7.3.00.0060.00716.68
7.2.330.0090.00916.62
7.2.320.0100.00716.71
7.2.310.0110.00616.61
7.2.300.0030.01416.52
7.2.290.0110.00716.69
7.2.250.0070.01215.07
7.2.240.0080.01115.28
7.2.230.0100.00615.24
7.2.220.0030.00814.90
7.2.210.0070.00915.04
7.2.200.0060.00415.10
7.2.190.0060.00814.92
7.2.180.0050.01014.92
7.2.170.0060.00915.11
7.2.60.0090.00316.97
7.1.330.0050.00916.02
7.1.320.0060.00715.68
7.1.310.0070.00715.66
7.1.300.0060.00615.78
7.1.290.0070.00715.73
7.1.280.0040.00715.88
7.1.270.0050.00915.69
7.1.260.0050.00815.74
7.1.200.0000.01115.79
7.1.70.0040.00417.17
7.1.60.0000.02319.48
7.1.50.0040.01617.07
7.1.00.0070.06722.43
7.0.200.0040.00416.89
7.0.60.0070.07720.01
7.0.50.0200.07017.84
7.0.40.0070.04020.27
7.0.30.0200.04720.13
7.0.20.0300.05019.98
7.0.10.0000.05320.30
7.0.00.0070.07320.11
5.6.280.0000.03321.04
5.6.210.0030.08720.71
5.6.200.0000.05018.15
5.6.190.0000.07320.60
5.6.180.0370.08020.63
5.6.170.0300.06320.50
5.6.160.0000.05020.33
5.6.150.0070.08018.21
5.6.140.0100.06318.11
5.6.130.0170.05318.23
5.6.120.0100.04020.98
5.6.110.0070.04021.04
5.6.100.0170.07020.93
5.6.90.0100.07321.12
5.6.80.0000.06720.50
5.5.350.3200.04720.41
5.5.340.0100.03317.92
5.5.330.0030.04720.47
5.5.320.0230.06720.28
5.5.310.0200.04320.25
5.5.300.0070.03317.97
5.5.290.0000.04717.98
5.5.280.0100.08320.80
5.5.270.0000.05720.72
5.5.260.0170.07720.73
5.5.250.0170.07020.48
5.5.240.0270.06720.12

preferences:
34.9 ms | 401 KiB | 5 Q