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]; $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.0040.01116.88
8.3.50.0070.01118.43
8.3.40.0110.00718.55
8.3.30.0060.00918.70
8.3.20.0090.00320.39
8.3.10.0080.00023.48
8.3.00.0050.00319.50
8.2.180.0090.00918.19
8.2.170.0080.00622.96
8.2.160.0120.00920.57
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0040.00417.50
8.2.120.0080.00026.35
8.2.110.0160.00319.39
8.2.100.0110.00417.84
8.2.90.0000.00819.36
8.2.80.0040.00417.97
8.2.70.0080.00017.38
8.2.60.0000.00718.03
8.2.50.0060.00318.07
8.2.40.0040.00419.34
8.2.30.0030.00520.75
8.2.20.0000.00917.63
8.2.10.0040.00418.15
8.2.00.0000.00718.13
8.1.280.0040.01125.92
8.1.270.0000.00921.99
8.1.260.0000.00728.09
8.1.250.0050.00228.09
8.1.240.0090.00023.92
8.1.230.0070.00320.82
8.1.220.0050.00317.74
8.1.210.0080.00018.77
8.1.200.0060.00317.35
8.1.190.0000.00817.35
8.1.180.0050.00318.10
8.1.170.0000.00818.58
8.1.160.0030.00321.93
8.1.150.0000.00818.90
8.1.140.0030.00519.58
8.1.130.0000.00717.63
8.1.120.0070.00017.37
8.1.110.0070.00317.50
8.1.100.0000.00717.55
8.1.90.0040.00417.38
8.1.80.0040.00417.45
8.1.70.0030.00317.36
8.1.60.0030.00517.63
8.1.50.0040.00417.43
8.1.40.0060.00317.54
8.1.30.0040.00417.68
8.1.20.0070.00017.61
8.1.10.0000.00717.66
8.1.00.0090.00017.38
8.0.300.0030.00518.77
8.0.290.0080.00016.75
8.0.280.0030.00318.37
8.0.270.0000.00717.29
8.0.260.0030.00317.17
8.0.250.0040.00416.86
8.0.240.0030.00716.99
8.0.230.0000.00717.00
8.0.220.0030.00316.93
8.0.210.0040.00416.74
8.0.200.0000.00716.98
8.0.190.0070.00016.84
8.0.180.0060.00316.75
8.0.170.0060.00616.89
8.0.160.0040.00416.79
8.0.150.0040.00416.82
8.0.140.0030.00916.75
8.0.130.0000.00513.26
8.0.120.0080.00016.79
8.0.110.0000.00716.77
8.0.100.0040.00416.85
8.0.90.0040.00416.94
8.0.80.0100.01316.99
8.0.70.0020.00516.92
8.0.60.0050.00316.95
8.0.50.0020.00516.90
8.0.30.0140.00817.22
8.0.20.0070.01117.40
8.0.10.0040.00417.07
8.0.00.0050.01216.68
7.4.330.0050.00016.67
7.4.320.0060.00016.48
7.4.300.0060.00016.44
7.4.290.0040.00416.58
7.4.280.0040.00416.48
7.4.270.0030.00316.55
7.4.260.0040.00416.53
7.4.250.0080.00316.43
7.4.240.0070.00016.47
7.4.230.0000.00716.43
7.4.220.0060.01916.45
7.4.210.0040.01216.51
7.4.200.0070.00016.61
7.4.160.0080.00816.26
7.4.150.0060.01117.40
7.4.140.0230.00217.86
7.4.130.0070.01116.42
7.4.120.0110.00816.43
7.4.110.0090.00916.52
7.4.100.0100.01316.51
7.4.90.0100.00716.53
7.4.80.0060.01119.39
7.4.70.0070.01116.35
7.4.60.0100.00616.48
7.4.50.0000.01216.57
7.4.40.0090.00916.47
7.4.30.0200.00316.63
7.4.00.0060.01014.69
7.3.330.0050.00313.07
7.3.320.0050.00013.09
7.3.310.0000.00616.29
7.3.300.0000.00716.30
7.3.290.0030.00316.27
7.3.280.0030.01216.36
7.3.270.0090.00817.40
7.3.260.0170.00016.34
7.3.240.0070.01116.39
7.3.230.0180.00616.43
7.3.210.0120.00616.44
7.3.200.0030.01416.44
7.3.190.0190.02716.38
7.3.180.0070.01016.55
7.3.170.0000.01616.50
7.3.160.0090.00716.38
7.3.120.0070.01117.15
7.3.110.0100.00317.15
7.3.100.0040.01217.15
7.3.90.0030.01317.15
7.3.80.0110.00417.15
7.3.70.0040.01117.15
7.3.60.0090.00317.15
7.3.50.0070.01017.15
7.3.40.0100.00317.15
7.3.30.0070.00717.15
7.3.20.0030.01017.15
7.3.10.0070.01017.15
7.3.00.0030.00917.15
7.2.330.0000.01716.72
7.2.320.0110.00716.43
7.2.310.0070.01016.69
7.2.300.0090.00916.36
7.2.290.0040.01316.52
7.2.240.0120.00317.15
7.2.230.0040.00817.15
7.2.220.0070.01117.15
7.2.210.0030.01317.15
7.2.200.0060.00717.15
7.2.190.0100.00317.15
7.2.180.0050.00317.15
7.2.170.0040.00817.15
7.2.160.0120.00317.15
7.2.150.0070.00717.15
7.2.140.0100.00617.15
7.2.130.0080.00817.20
7.2.120.0000.01717.15
7.2.110.0040.00717.15
7.2.100.0030.00917.15
7.2.90.0040.00417.15
7.2.80.0030.00917.15
7.2.70.0050.00817.15
7.2.60.0020.01216.94
7.2.50.0030.01017.15
7.2.40.0030.00917.15
7.2.30.0060.00617.15
7.2.20.0070.01017.15
7.2.10.0060.00817.15
7.2.00.0070.00618.35
7.1.330.0110.00417.15
7.1.320.0030.01217.15
7.1.310.0090.00617.15
7.1.300.0050.00517.15
7.1.290.0060.00617.15
7.1.280.0080.00317.15
7.1.270.0070.00717.15
7.1.260.0000.00917.15
7.1.250.0000.01217.15
7.1.200.0040.00415.82
7.1.100.0070.01017.88
7.1.70.0050.00316.98
7.1.60.0060.01919.48
7.1.50.0090.01316.86
7.1.00.0030.07722.51
7.0.200.0620.00714.93
7.0.60.0000.05019.83
7.0.50.0030.07717.66
7.0.40.0070.04019.98
7.0.30.0230.08320.18
7.0.20.0300.07020.22
7.0.10.0170.08020.30
7.0.00.0070.09020.16
5.6.280.0030.06321.13
5.6.210.0070.06720.59
5.6.200.0030.04018.12
5.6.190.0030.08720.39
5.6.180.0330.07020.58
5.6.170.0200.06720.34
5.6.160.0030.04320.48
5.6.150.0070.04018.12
5.6.140.0100.05018.20
5.6.130.0030.05718.16
5.6.120.0130.06020.99
5.6.110.0130.06321.11
5.6.100.0130.08320.95
5.6.90.0070.08321.09
5.6.80.0070.07020.40
5.5.350.4030.04320.42
5.5.340.0030.04017.93
5.5.330.0130.08020.14
5.5.320.0230.09020.28
5.5.310.0170.04720.32
5.5.300.0070.04717.88
5.5.290.0170.07717.96
5.5.280.0100.04320.88
5.5.270.0070.08320.89
5.5.260.0100.04720.97
5.5.250.0070.08720.68
5.5.240.0170.03020.27

preferences:
41.03 ms | 400 KiB | 5 Q