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]; $title_field = $field_name . ':title'; $row->{$field_name . ':title'} = array($delta => 'title');

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.01416.63
8.3.50.0130.00822.11
8.3.40.0100.00719.02
8.3.30.0150.00018.68
8.3.20.0000.00820.21
8.3.10.0030.00623.63
8.3.00.0040.00419.50
8.2.180.0070.01116.88
8.2.170.0100.01022.96
8.2.160.0140.00720.29
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0060.00317.63
8.2.120.0040.00426.35
8.2.110.0030.00719.21
8.2.100.0080.00417.84
8.2.90.0040.00817.75
8.2.80.0000.01017.97
8.2.70.0000.00818.05
8.2.60.0070.00018.00
8.2.50.0030.00518.10
8.2.40.0000.00820.60
8.2.30.0040.00420.63
8.2.20.0050.00317.66
8.2.10.0060.00318.11
8.2.00.0070.00018.08
8.1.280.0070.00725.92
8.1.270.0030.00621.96
8.1.260.0000.00728.09
8.1.250.0070.00028.09
8.1.240.0030.00623.89
8.1.230.0110.00019.10
8.1.220.0040.00417.74
8.1.210.0000.00918.77
8.1.200.0040.00417.47
8.1.190.0000.00817.35
8.1.180.0080.00018.10
8.1.170.0040.00418.59
8.1.160.0030.00322.07
8.1.150.0040.00418.89
8.1.140.0000.00819.63
8.1.130.0070.00017.66
8.1.120.0030.00517.41
8.1.110.0050.00517.32
8.1.100.0050.00317.48
8.1.90.0000.00717.50
8.1.80.0040.00417.36
8.1.70.0030.00317.43
8.1.60.0050.00317.48
8.1.50.0080.00017.56
8.1.40.0030.00617.57
8.1.30.0000.00817.67
8.1.20.0000.00817.61
8.1.10.0030.00617.64
8.1.00.0070.00017.38
8.0.300.0030.00320.13
8.0.290.0000.00816.63
8.0.280.0000.00718.42
8.0.270.0000.00817.33
8.0.260.0040.00417.27
8.0.250.0000.00816.96
8.0.240.0040.00416.86
8.0.230.0040.00316.97
8.0.220.0040.00416.87
8.0.210.0000.00716.85
8.0.200.0060.00017.02
8.0.190.0040.00416.96
8.0.180.0000.00716.84
8.0.170.0040.00716.89
8.0.160.0040.00316.95
8.0.150.0000.00716.97
8.0.140.0080.00316.79
8.0.130.0070.00013.31
8.0.120.0040.00416.76
8.0.110.0000.00816.91
8.0.100.0040.00416.90
8.0.90.0040.00416.72
8.0.80.0030.01716.95
8.0.70.0050.00216.75
8.0.60.0040.00416.75
8.0.50.0000.00716.71
8.0.30.0110.00617.15
8.0.20.0120.00817.40
8.0.10.0000.00716.91
8.0.00.0070.01416.77
7.4.330.0000.00516.81
7.4.320.0060.00016.53
7.4.300.0030.00316.59
7.4.290.0040.00416.55
7.4.280.0040.00416.54
7.4.270.0030.00316.46
7.4.260.0000.00716.48
7.4.250.0000.00816.53
7.4.240.0000.00716.52
7.4.230.0030.00316.20
7.4.220.0090.00916.50
7.4.210.0100.00816.47
7.4.200.0000.00816.66
7.4.160.0090.00616.36
7.4.150.0090.01517.40
7.4.140.0190.00317.86
7.4.130.0130.00616.42
7.4.120.0120.00916.62
7.4.110.0140.01016.54
7.4.100.0050.01416.61
7.4.90.0070.01316.54
7.4.80.0080.01519.39
7.4.70.0150.00316.39
7.4.60.0080.00816.61
7.4.50.0080.00616.65
7.4.40.0170.00316.62
7.4.30.0100.00716.57
7.4.00.0120.00315.05
7.3.330.0060.00013.12
7.3.320.0000.00613.18
7.3.310.0030.00316.39
7.3.300.0030.00316.32
7.3.290.0070.00016.23
7.3.280.0060.01116.33
7.3.270.0080.01117.40
7.3.260.0120.01216.66
7.3.240.0060.01416.49
7.3.230.0070.01416.39
7.3.210.0170.00316.57
7.3.200.0090.00916.62
7.3.190.0130.00316.29
7.3.180.0060.01216.23
7.3.170.0060.01316.39
7.3.160.0100.00716.64
7.2.330.0030.01416.57
7.2.320.0070.01416.76
7.2.310.0090.00916.70
7.2.300.0030.01316.74
7.2.290.0060.01016.73
7.2.60.0070.01017.13
7.2.00.0060.00919.55
7.1.200.0100.00015.97
7.1.100.0090.00318.20
7.1.70.0030.00517.14
7.1.60.0000.02319.48
7.1.50.0000.01016.67
7.1.00.0100.07022.51
7.0.200.0290.00614.46
7.0.60.0130.07019.99
7.0.50.0030.08017.80
7.0.40.0000.04720.04
7.0.30.0200.07020.17
7.0.20.0270.05720.20
7.0.10.0030.09320.02
7.0.00.0100.04320.18
5.6.280.0000.03321.01
5.6.210.0100.05720.53
5.6.200.0030.04018.21
5.6.190.0070.08320.35
5.6.180.0470.05720.48
5.6.170.0370.06720.48
5.6.160.0070.08320.41
5.6.150.0100.07718.21
5.6.140.0130.04718.07
5.6.130.0100.07718.18
5.6.120.0130.03320.99
5.6.110.0030.04021.11
5.6.100.0030.07021.11
5.6.90.0070.06021.03
5.6.80.0100.06020.51
5.5.350.2830.03020.52
5.5.340.0000.04317.89
5.5.330.0030.04720.36
5.5.320.0130.05020.24
5.5.310.0200.04320.24
5.5.300.0000.04017.91
5.5.290.0070.03717.92
5.5.280.0100.08320.80
5.5.270.0030.06320.85
5.5.260.0100.07720.96
5.5.250.0030.07720.46
5.5.240.0800.07020.13

preferences:
50.07 ms | 401 KiB | 5 Q