3v4l.org

run code in 300+ PHP versions simultaneously
<?php $row = new stdClass; $field_name = 'field_my_field'; $delta = 0; $row->{$field_name} = array(); $row->{$field_name}[$delta] = 'value'; // This works just fine. echo 'field_name by itself: ' . $row->{$field_name}; $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.0090.00916.88
8.3.50.0100.00722.09
8.3.40.0080.00618.73
8.3.30.0030.01418.61
8.3.20.0080.00020.21
8.3.10.0090.00023.70
8.3.00.0040.00419.33
8.2.180.0110.00718.55
8.2.170.0040.01122.96
8.2.160.0040.01120.52
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0000.00819.36
8.2.120.0040.00426.35
8.2.110.0000.00820.52
8.2.100.0040.00818.04
8.2.90.0090.00019.17
8.2.80.0040.00417.97
8.2.70.0000.01217.63
8.2.60.0040.00417.93
8.2.50.0000.00818.07
8.2.40.0000.00819.52
8.2.30.0000.00820.51
8.2.20.0050.00517.82
8.2.10.0040.00418.20
8.2.00.0050.00218.18
8.1.280.0110.00425.92
8.1.270.0080.00022.15
8.1.260.0000.00728.09
8.1.250.0000.00728.09
8.1.240.0000.00922.45
8.1.230.0110.00017.66
8.1.220.0000.00917.78
8.1.210.0000.00818.77
8.1.200.0000.00917.25
8.1.190.0000.00817.25
8.1.180.0030.00618.10
8.1.170.0040.00419.02
8.1.160.0040.00421.96
8.1.150.0000.00718.84
8.1.140.0000.00819.57
8.1.130.0030.00317.65
8.1.120.0040.00417.46
8.1.110.0080.00017.50
8.1.100.0000.00717.46
8.1.90.0000.00717.43
8.1.80.0030.00517.43
8.1.70.0000.00717.29
8.1.60.0050.00317.45
8.1.50.0030.00517.57
8.1.40.0000.00817.41
8.1.30.0030.00517.59
8.1.20.0040.00417.66
8.1.10.0070.00017.45
8.1.00.0050.00317.50
8.0.300.0000.00818.77
8.0.290.0070.00016.75
8.0.280.0020.00518.43
8.0.270.0000.00717.28
8.0.260.0030.00517.18
8.0.250.0070.00017.00
8.0.240.0000.00716.91
8.0.230.0000.00717.03
8.0.220.0000.00716.96
8.0.210.0000.00716.98
8.0.200.0040.00417.02
8.0.190.0070.00017.01
8.0.180.0030.00516.97
8.0.170.0070.00416.98
8.0.160.0030.00417.09
8.0.150.0040.00416.95
8.0.140.0030.00616.95
8.0.130.0000.00613.40
8.0.120.0000.00816.90
8.0.110.0000.00816.99
8.0.100.0040.00417.05
8.0.90.0000.00716.77
8.0.80.0030.01416.93
8.0.70.0050.00216.78
8.0.60.0000.00717.07
8.0.50.0080.00016.89
8.0.30.0140.00317.13
8.0.20.0100.00817.40
8.0.10.0040.00417.04
8.0.00.0100.00916.74
7.4.330.0000.00516.66
7.4.320.0000.00716.38
7.4.300.0030.00316.42
7.4.290.0000.00716.51
7.4.280.0030.00616.54
7.4.270.0030.00316.57
7.4.260.0000.00716.48
7.4.250.0050.00216.42
7.4.240.0030.00416.52
7.4.230.0000.00716.36
7.4.220.0090.00916.43
7.4.210.0070.00916.49
7.4.200.0000.00716.39
7.4.160.0060.00916.47
7.4.150.0080.00817.40
7.4.140.0150.01717.86
7.4.130.0110.00616.61
7.4.120.0050.01516.50
7.4.110.0130.00716.61
7.4.100.0120.00616.42
7.4.90.0100.01716.54
7.4.80.0090.01219.39
7.4.70.0110.01116.75
7.4.60.0110.00416.51
7.4.50.0090.00616.63
7.4.40.0040.01216.52
7.4.30.0140.00316.40
7.4.00.0060.00915.12
7.3.330.0040.00413.23
7.3.320.0030.00313.30
7.3.310.0000.00716.51
7.3.300.0000.00716.41
7.3.290.0040.00416.41
7.3.280.0090.00816.41
7.3.270.0180.00717.40
7.3.260.0130.00316.47
7.3.250.0130.00416.39
7.3.240.0110.00616.38
7.3.230.0070.01016.42
7.3.210.0090.00916.49
7.3.200.0130.00316.29
7.3.190.0110.01116.38
7.3.180.0080.00816.55
7.3.170.0130.00316.68
7.3.160.0130.00316.55
7.2.330.0140.01116.37
7.2.320.0080.00916.80
7.2.310.0100.00716.74
7.2.300.0070.01016.70
7.2.290.0090.00916.59
7.2.60.0080.00516.74
7.2.00.0090.00319.50
7.1.200.0030.00615.96
7.1.100.0040.01217.93
7.1.70.0050.00316.98
7.1.60.0140.01019.48
7.1.50.0040.01116.70
7.1.00.0030.07722.36
7.0.200.0000.00916.95
7.0.60.0100.04019.94
7.0.50.0100.07717.82
7.0.40.0030.04320.05
7.0.30.0330.06720.09
7.0.20.0230.06320.09
7.0.10.0030.05019.99
7.0.00.0070.09020.29
5.6.280.0100.06320.89
5.6.210.0200.06720.47
5.6.200.0070.03718.22
5.6.190.0130.08320.57
5.6.180.0470.07020.55
5.6.170.0300.05720.51
5.6.160.0030.06320.41
5.6.150.0030.08018.11
5.6.140.0170.06318.12
5.6.130.0100.03718.20
5.6.120.0030.09021.01
5.6.110.0070.08721.09
5.6.100.0030.09020.95
5.6.90.0030.08320.94
5.6.80.0070.08320.46
5.5.350.4130.04020.34
5.5.340.0030.04017.91
5.5.330.0030.06320.56
5.5.320.0170.07020.24
5.5.310.0270.04020.29
5.5.300.0100.07717.95
5.5.290.0230.06317.91
5.5.280.0070.08320.84
5.5.270.0000.04320.79
5.5.260.0030.04720.60
5.5.250.0130.07720.61
5.5.240.0170.04320.23

preferences:
55.98 ms | 401 KiB | 5 Q