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.0080.00816.63
8.3.50.0130.00822.11
8.3.40.0150.00018.85
8.3.30.0090.00618.71
8.3.20.0040.00420.29
8.3.10.0000.00823.49
8.3.00.0050.00319.38
8.2.180.0130.00916.50
8.2.170.0170.00022.96
8.2.160.0090.00620.53
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0030.00617.63
8.2.120.0040.00426.35
8.2.110.0000.01021.02
8.2.100.0090.00317.80
8.2.90.0080.00019.19
8.2.80.0050.00317.97
8.2.70.0030.00517.63
8.2.60.0080.00018.03
8.2.50.0030.00518.07
8.2.40.0000.00719.39
8.2.30.0000.00720.65
8.2.20.0000.00817.68
8.2.10.0050.00318.18
8.2.00.0000.00718.07
8.1.280.0090.00625.92
8.1.270.0090.00021.98
8.1.260.0040.00428.09
8.1.250.0070.00028.09
8.1.240.0140.00321.32
8.1.230.0080.00417.66
8.1.220.0030.00517.79
8.1.210.0060.00318.77
8.1.200.0000.00917.35
8.1.190.0030.00517.38
8.1.180.0050.00318.10
8.1.170.0040.00418.90
8.1.160.0040.00422.07
8.1.150.0040.00418.86
8.1.140.0060.00319.51
8.1.130.0040.00417.62
8.1.120.0050.00317.50
8.1.110.0060.00317.37
8.1.100.0000.00817.49
8.1.90.0040.00417.50
8.1.80.0040.00417.39
8.1.70.0000.00717.40
8.1.60.0040.00417.62
8.1.50.0090.00017.59
8.1.40.0030.00517.44
8.1.30.0000.00817.67
8.1.20.0000.00717.63
8.1.10.0000.00717.61
8.1.00.0040.00417.45
8.0.300.0030.00518.77
8.0.290.0040.00416.75
8.0.280.0000.00718.33
8.0.270.0030.00317.13
8.0.260.0060.00317.29
8.0.250.0040.00417.03
8.0.240.0060.00316.84
8.0.230.0070.00016.88
8.0.220.0030.00416.84
8.0.210.0030.00316.81
8.0.200.0030.00316.86
8.0.190.0080.00016.98
8.0.180.0000.00816.86
8.0.170.0080.00316.82
8.0.160.0000.00716.90
8.0.150.0000.00716.68
8.0.140.0060.00616.86
8.0.130.0100.00013.38
8.0.120.0030.00616.82
8.0.110.0070.00016.88
8.0.100.0090.00016.90
8.0.90.0000.00716.74
8.0.80.0140.00416.89
8.0.70.0030.00516.96
8.0.60.0070.00016.73
8.0.50.0040.00417.02
8.0.30.0160.00517.09
8.0.20.0110.00717.42
8.0.10.0070.00016.84
8.0.00.0080.00916.86
7.4.330.0050.00016.71
7.4.320.0030.00316.45
7.4.300.0060.00016.43
7.4.290.0030.00316.57
7.4.280.0080.00016.47
7.4.270.0000.00716.47
7.4.260.0030.00316.45
7.4.250.0030.00616.53
7.4.240.0050.00216.51
7.4.230.0000.00716.61
7.4.220.0120.00616.49
7.4.210.0090.00516.50
7.4.200.0000.00716.45
7.4.160.0080.00816.48
7.4.150.0150.00317.40
7.4.140.0250.00917.86
7.4.130.0060.01116.43
7.4.120.0100.01316.51
7.4.110.0090.01116.57
7.4.100.0150.00916.56
7.4.90.0080.00816.42
7.4.80.0180.00619.39
7.4.70.0060.01216.53
7.4.60.0130.00316.44
7.4.50.0000.01516.40
7.4.40.0150.00316.50
7.4.30.0060.01416.39
7.4.00.0060.00615.14
7.3.330.0080.00013.08
7.3.320.0030.00313.25
7.3.310.0070.00016.27
7.3.300.0070.00016.19
7.3.290.0000.00716.16
7.3.280.0060.01116.34
7.3.270.0110.00617.40
7.3.260.0100.00716.36
7.3.240.0100.00916.40
7.3.230.0140.00316.39
7.3.210.0120.00616.61
7.3.200.0110.00716.35
7.3.190.0060.00916.45
7.3.180.0120.00616.33
7.3.170.0180.00316.39
7.3.160.0060.00916.31
7.3.120.0030.01215.09
7.3.110.0040.00414.90
7.3.100.0030.01014.88
7.3.90.0060.00914.92
7.3.80.0000.01014.51
7.3.70.0120.00414.69
7.3.60.0090.00314.94
7.3.50.0040.01115.00
7.3.40.0070.00715.03
7.3.30.0070.01014.53
7.3.20.0040.00816.70
7.3.10.0140.00016.42
7.3.00.0060.00916.74
7.2.330.0110.01116.59
7.2.320.0030.01716.80
7.2.310.0100.00716.84
7.2.300.0100.00716.71
7.2.290.0100.00716.79
7.2.240.0070.01014.78
7.2.230.0070.00715.09
7.2.220.0040.00715.17
7.2.210.0060.00915.32
7.2.200.0030.01314.96
7.2.190.0070.01015.02
7.2.180.0000.01214.89
7.2.170.0000.01015.02
7.2.160.0030.01415.06
7.2.150.0060.01016.93
7.2.140.0070.00716.83
7.2.130.0100.00616.69
7.2.120.0100.00617.00
7.2.110.0000.01716.99
7.2.100.0060.01216.99
7.2.90.0040.01116.79
7.2.80.0000.01417.00
7.2.70.0060.00617.16
7.2.60.0090.00516.92
7.2.50.0130.00016.56
7.2.40.0060.00616.95
7.2.30.0100.00716.96
7.2.20.0120.00317.00
7.2.10.0000.00916.95
7.2.00.0030.01018.30
7.1.330.0070.00715.83
7.1.320.0060.00915.53
7.1.310.0030.01015.53
7.1.300.0030.01015.94
7.1.290.0130.00315.76
7.1.280.0030.01016.00
7.1.270.0040.01216.04
7.1.260.0080.00615.93
7.1.250.0000.01015.77
7.1.200.0000.01215.80
7.1.100.0000.01217.93
7.1.70.0030.00317.18
7.1.60.0070.01819.48
7.1.50.0040.01117.05
7.1.00.0070.07322.33
7.0.200.0030.00616.82
7.0.60.0030.04019.85
7.0.50.0070.06717.81
7.0.40.0070.07019.90
7.0.30.0270.03720.01
7.0.20.0270.05320.00
7.0.10.0170.05720.17
7.0.00.0070.08020.17
5.6.280.0070.05021.02
5.6.210.0030.08720.71
5.6.200.0100.04718.22
5.6.190.0130.05020.28
5.6.180.0230.05020.35
5.6.170.0270.07720.41
5.6.160.0070.08720.50
5.6.150.0070.06718.12
5.6.140.0100.06018.21
5.6.130.0070.08718.20
5.6.120.0100.04321.12
5.6.110.0100.07020.98
5.6.100.0070.08321.14
5.6.90.0170.07321.11
5.6.80.0070.08320.37
5.5.350.4200.04020.40
5.5.340.0000.05017.95
5.5.330.0130.07720.15
5.5.320.0130.04720.39
5.5.310.0130.05020.12
5.5.300.0100.06017.96
5.5.290.0130.07718.00
5.5.280.0130.04720.77
5.5.270.0070.05720.96
5.5.260.0030.08720.84
5.5.250.0000.05020.61
5.5.240.0230.07320.12

preferences:
54.66 ms | 401 KiB | 5 Q