3v4l.org

run code in 300+ PHP versions simultaneously
<?php $row = new stdClass; $field_name = 'field_my_field'; $delta = 0; $row->$field_name = []; $row->$field_name[$delta] = 'value'; // This works just fine. $f = $field_name . ':title'; $row->$f = [$delta => 'value']; // This doesn't work. 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.40.0110.00718.67
8.3.30.0120.00318.80
8.3.20.0080.00020.04
8.3.10.0000.00723.61
8.3.00.0080.00019.30
8.2.170.0100.01022.96
8.2.160.0090.00920.40
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0060.00317.50
8.2.120.0000.00826.35
8.2.110.0040.00420.52
8.2.100.0040.00818.04
8.2.90.0040.00419.17
8.2.80.0040.00417.97
8.2.70.0060.00317.75
8.2.60.0080.00017.93
8.2.50.0000.00818.07
8.2.40.0050.00319.27
8.2.30.0040.00420.56
8.2.20.0040.00417.66
8.2.10.0000.00818.18
8.2.00.0040.00418.12
8.1.270.0060.00321.89
8.1.260.0060.00328.09
8.1.250.0000.00928.09
8.1.240.0040.00422.59
8.1.230.0090.00317.79
8.1.220.0080.00017.76
8.1.210.0050.00318.77
8.1.200.0040.00417.35
8.1.190.0080.00017.35
8.1.180.0000.00718.10
8.1.170.0000.00718.90
8.1.160.0050.00221.93
8.1.150.0040.00418.89
8.1.140.0040.00419.64
8.1.130.0000.00717.76
8.1.120.0020.00517.49
8.1.110.0070.00317.35
8.1.100.0040.00417.45
8.1.90.0020.00517.43
8.1.80.0070.00017.45
8.1.70.0070.00017.43
8.1.60.0040.00417.63
8.1.50.0030.00517.43
8.1.40.0030.00617.54
8.1.30.0040.00417.54
8.1.20.0040.00417.56
8.1.10.0040.00417.61
8.1.00.0000.00717.55
8.0.300.0050.00218.77
8.0.290.0050.00316.75
8.0.280.0030.00318.37
8.0.270.0030.00317.30
8.0.260.0000.00917.25
8.0.250.0040.00416.89
8.0.240.0050.00516.98
8.0.230.0030.00316.98
8.0.220.0030.00316.93
8.0.210.0000.00716.89
8.0.200.0000.00616.84
8.0.190.0040.00416.84
8.0.180.0040.00416.93
8.0.170.0100.00016.95
8.0.160.0000.00816.84
8.0.150.0030.00316.89
8.0.140.0000.01116.80
8.0.130.0030.00313.32
8.0.120.0000.00816.84
8.0.110.0050.00316.91
8.0.100.0000.00716.74
8.0.90.0000.00816.88
8.0.80.0100.00616.88
8.0.70.0000.00816.98
8.0.60.0050.00216.73
8.0.50.0050.00316.95
8.0.30.0100.00917.10
8.0.20.0100.00917.40
8.0.10.0030.00516.89
8.0.00.0090.00916.68
7.4.330.0000.00516.83
7.4.320.0030.00316.56
7.4.300.0060.00016.54
7.4.290.0000.00716.37
7.4.280.0050.00316.44
7.4.270.0070.00016.60
7.4.260.0030.00316.45
7.4.250.0040.00416.34
7.4.240.0020.00416.40
7.4.230.0030.00316.65
7.4.220.0070.01016.39
7.4.210.0080.00916.51
7.4.200.0050.00316.64
7.4.160.0120.00316.60
7.4.150.0110.00717.40
7.4.140.0170.00517.86
7.4.130.0030.01516.45
7.4.120.0100.00816.51
7.4.110.0040.01616.53
7.4.100.0110.00716.32
7.4.90.0100.00716.38
7.4.80.0070.01019.39
7.4.70.0200.00516.48
7.4.60.0060.01016.50
7.4.50.0100.00316.70
7.4.40.0070.01416.65
7.4.30.0130.00916.43
7.4.10.0000.01516.54
7.4.00.0020.01415.81
7.3.330.0040.00413.14
7.3.320.0000.00613.14
7.3.310.0070.00016.28
7.3.300.0030.00316.29
7.3.290.0030.00516.31
7.3.280.0050.01116.30
7.3.270.0090.00917.40
7.3.260.0030.01416.37
7.3.240.0090.01116.35
7.3.230.0140.00316.39
7.3.210.0180.00616.30
7.3.200.0120.00816.17
7.3.190.0120.00416.36
7.3.180.0170.00616.16
7.3.170.0120.00916.39
7.3.160.0080.00816.20
7.3.130.0100.00616.36
7.3.120.0060.01216.24
7.3.110.0060.01316.22
7.3.100.0030.01316.30
7.3.90.0070.01016.27
7.3.80.0040.00716.24
7.3.70.0080.00816.29
7.3.60.0090.00616.19
7.3.50.0000.02016.28
7.3.40.0030.01016.21
7.3.30.0030.01316.34
7.3.20.0030.01218.09
7.3.10.0090.00617.07
7.3.00.0080.00817.26
7.2.330.0040.01516.41
7.2.320.0100.01216.72
7.2.310.0110.01116.60
7.2.300.0110.00616.50
7.2.290.0030.01416.66
7.2.260.0120.00616.51
7.2.250.0030.01516.35
7.2.240.0040.01216.67
7.2.230.0100.01016.45
7.2.220.0120.00816.58
7.2.210.0000.01616.34
7.2.200.0100.00616.55
7.2.190.0070.01016.49
7.2.180.0060.00616.46
7.2.170.0030.01316.59
7.2.160.0000.01016.65
7.2.150.0090.00618.34
7.2.140.0100.00718.41
7.2.130.0060.01217.41
7.2.120.0120.00417.37
7.2.110.0120.00617.48
7.2.100.0140.00517.35
7.2.90.0150.00617.28
7.2.80.0100.01017.36
7.2.70.0110.00717.44
7.2.60.0110.00617.26
7.2.50.0080.00717.33
7.2.40.0080.00817.31
7.2.30.0080.00917.40
7.2.20.0100.00917.34
7.2.10.0090.00717.32
7.2.00.0080.00518.18
7.1.330.0110.00417.40
7.1.320.0130.00617.51
7.1.310.0070.00717.46
7.1.300.0080.01117.50
7.1.290.0030.00717.48
7.1.280.0040.00417.39
7.1.270.0100.00717.36
7.1.260.0130.00017.31
7.1.250.0090.00816.27
7.1.240.0110.00716.78
7.1.230.0040.01416.84
7.1.220.0100.00617.25
7.1.210.0110.00017.30
7.1.200.0050.00716.47
7.1.190.0070.01117.30
7.1.180.0070.01017.17
7.1.170.0070.00317.30
7.1.160.0090.00617.29
7.1.150.0090.00317.44
7.1.140.0060.00617.32
7.1.130.0080.00417.40
7.1.120.0000.01817.23
7.1.110.0070.01017.21
7.1.100.0090.00617.73
7.1.90.0110.00417.33
7.1.80.0040.01117.32
7.1.70.0070.00617.29
7.1.60.0070.01518.44
7.1.50.0090.00617.22
7.1.40.0040.01217.29
7.1.30.0070.01117.28
7.1.20.0050.00517.51
7.1.10.0040.00817.12
7.1.00.0090.03919.85
7.0.330.0070.00717.00
7.0.320.0060.00917.01
7.0.310.0110.00417.05
7.0.300.0030.00617.05
7.0.290.0090.00616.93
7.0.280.0090.00016.89
7.0.270.0060.00817.04
7.0.260.0130.00317.20
7.0.250.0100.00716.93
7.0.240.0030.00917.08
7.0.230.0060.01016.98
7.0.220.0110.00417.15
7.0.210.0150.00316.95
7.0.200.0080.00516.88
7.0.190.0000.01617.00
7.0.180.0030.00617.05
7.0.170.0080.00817.11
7.0.160.0040.00716.88
7.0.150.0000.01317.03
7.0.140.0030.00717.01
7.0.130.0100.00017.01
7.0.120.0090.00617.04
7.0.110.0060.00817.06
7.0.100.0070.00716.98
7.0.90.0080.00417.09
7.0.80.0030.00716.80
7.0.70.0070.00716.86
7.0.60.0070.02218.44
7.0.50.0090.02917.41
7.0.40.0020.02817.54
7.0.30.0180.02217.52
7.0.20.0180.03017.44
7.0.10.0080.04217.53
7.0.00.0110.02717.48
5.6.400.0070.00715.73
5.6.390.0030.01216.03
5.6.380.0060.00616.00
5.6.370.0060.01216.08
5.6.360.0000.01415.95
5.6.350.0060.00915.98
5.6.340.0080.00415.89
5.6.330.0090.00015.73
5.6.320.0100.00715.85
5.6.310.0110.00015.86
5.6.300.0040.01116.00
5.6.290.0000.01116.22
5.6.280.0070.01818.43
5.6.270.0100.00716.06
5.6.260.0030.01516.08
5.6.250.0080.00316.02
5.6.240.0000.01215.92
5.6.230.0080.00816.10
5.6.220.0100.00316.08
5.6.210.0090.03618.38
5.6.200.0070.02217.11
5.6.190.0060.04918.24
5.6.180.0250.03118.24
5.6.170.0190.04318.12
5.6.160.0070.03518.13
5.6.150.0040.04117.00
5.6.140.0030.04916.96
5.6.130.0040.02717.07
5.6.120.0020.04718.36
5.6.110.0070.04218.40
5.6.100.0050.04818.40
5.6.90.0050.03318.54
5.6.80.0120.03418.14
5.6.70.0080.00415.80
5.6.60.0000.01015.76
5.6.50.0070.00716.10
5.6.40.0030.00915.75
5.6.30.0060.00615.84
5.6.20.0060.00915.91
5.6.10.0070.00715.89
5.6.00.0030.01015.92
5.5.380.0080.00615.82
5.5.370.0090.00415.80
5.5.360.0060.01015.74
5.5.350.2120.02318.04
5.5.340.0040.02516.95
5.5.330.0050.04818.02
5.5.320.0150.02218.07
5.5.310.0100.02918.18
5.5.300.0070.04316.96
5.5.290.0100.04016.87
5.5.280.0080.02818.38
5.5.270.0060.03018.42
5.5.260.0060.02618.25
5.5.250.0080.03618.15
5.5.240.0120.03518.02
5.5.230.0100.00715.77
5.5.220.0070.00715.86
5.5.210.0100.00015.84
5.5.200.0030.01015.90
5.5.190.0030.01015.86
5.5.180.0000.01115.83
5.5.170.0090.00315.68
5.5.160.0040.00415.61
5.5.150.0060.00615.91
5.5.140.0000.00915.79
5.5.130.0030.01315.83
5.5.120.0040.01116.00
5.5.110.0040.00715.81
5.5.100.0150.00015.63
5.5.90.0040.00415.80
5.5.80.0080.00415.84
5.5.70.0060.00915.73
5.5.60.0040.00915.88
5.5.50.0040.00915.83
5.5.40.0060.00315.82
5.5.30.0130.00315.94
5.5.20.0060.00915.86
5.5.10.0040.00415.69
5.5.00.0070.01015.79

preferences:
43.78 ms | 400 KiB | 5 Q