3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = 'foo'; $bar = new stdClass; $bar->$foo = array(10, 20, 30); // $bar->foo => array(10, 20, 30) $bar->{$foo[0]} = 42; // dynamic property $f = 42 – derived from zero offset of ‘foo’ var_dump($bar); $bar->$foo[0] = 42; // zeroth element of array that $foo identifies = 42 var_dump($bar);

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.01116.50
8.3.50.0130.00621.20
8.3.40.0050.01018.59
8.3.30.0150.00018.46
8.3.20.0040.01120.04
8.3.10.0050.00321.98
8.3.00.0080.00023.70
8.2.180.0090.01218.41
8.2.170.0140.00022.96
8.2.160.0130.00020.52
8.2.150.0000.00924.18
8.2.140.0080.00024.66
8.2.130.0000.00819.83
8.2.120.0040.00426.35
8.2.110.0030.00721.04
8.2.100.0030.00917.78
8.2.90.0000.00819.06
8.2.80.0000.00817.97
8.2.70.0000.00917.63
8.2.60.0050.00518.03
8.2.50.0000.00918.10
8.2.40.0040.00420.59
8.2.30.0030.00519.41
8.2.20.0000.00817.68
8.2.10.0040.00418.13
8.2.00.0040.00418.09
8.1.280.0030.01025.92
8.1.270.0000.00923.97
8.1.260.0050.00228.09
8.1.250.0070.00028.09
8.1.240.0060.00322.67
8.1.230.0040.00717.77
8.1.220.0050.00317.77
8.1.210.0060.00318.77
8.1.200.0000.00817.48
8.1.190.0040.00417.23
8.1.180.0080.00018.10
8.1.170.0030.00618.64
8.1.160.0030.00422.05
8.1.150.0040.00418.89
8.1.140.0040.00419.57
8.1.130.0040.00417.63
8.1.120.0040.00417.52
8.1.110.0040.00417.43
8.1.100.0040.00417.36
8.1.90.0040.00417.35
8.1.80.0070.00017.45
8.1.70.0030.00317.50
8.1.60.0040.00417.55
8.1.50.0080.00017.42
8.1.40.0030.00617.42
8.1.30.0000.00817.73
8.1.20.0030.00517.54
8.1.10.0040.00417.46
8.1.00.0050.00217.54
8.0.300.0040.00418.77
8.0.290.0000.00916.63
8.0.280.0040.00418.45
8.0.270.0020.00517.31
8.0.260.0000.00617.29
8.0.250.0000.00617.04
8.0.240.0040.00416.95
8.0.230.0030.00317.02
8.0.220.0070.00016.89
8.0.210.0040.00416.89
8.0.200.0000.00716.85
8.0.190.0030.00616.98
8.0.180.0040.00416.81
8.0.170.0030.00516.94
8.0.160.0030.00316.76
8.0.150.0050.00216.80
8.0.140.0040.00416.89
8.0.130.0000.00513.37
8.0.120.0000.00816.87
8.0.110.0000.00816.80
8.0.100.0000.00716.79
8.0.90.0020.00516.89
8.0.80.0100.00716.96
8.0.70.0040.00416.94
8.0.60.0070.00016.84
8.0.50.0040.00416.88
8.0.30.0050.01316.82
8.0.20.0120.00617.40
8.0.10.0000.00817.13
8.0.00.0150.00816.61
7.4.330.0000.00516.66
7.4.320.0000.00616.43
7.4.300.0080.00016.39
7.4.290.0070.00016.44
7.4.280.0000.00716.42
7.4.270.0000.00716.44
7.4.260.0060.00316.39
7.4.250.0050.00316.50
7.4.240.0030.00416.49
7.4.230.0030.00316.50
7.4.220.0090.01316.43
7.4.210.0120.00516.57
7.4.200.0070.00016.37
7.4.160.0080.00816.56
7.4.150.0120.00617.40
7.4.140.0070.01617.86
7.4.130.0140.00716.59
7.4.120.0130.00616.38
7.4.110.0070.01116.39
7.4.100.0180.00016.49
7.4.90.0070.01116.55
7.4.80.0210.00319.39
7.4.70.0100.01116.41
7.4.60.0140.00316.46
7.4.50.0030.01316.39
7.4.40.0080.00916.39
7.4.30.0030.01516.47
7.4.00.0060.00915.13
7.3.330.0060.00013.29
7.3.320.0050.00013.26
7.3.310.0070.00016.26
7.3.300.0030.00316.28
7.3.290.0040.00416.38
7.3.280.0120.00816.33
7.3.270.0120.01217.40
7.3.260.0110.00716.52
7.3.250.0100.00816.32
7.3.240.0090.01016.64
7.3.230.0160.00616.69
7.3.210.0100.01016.42
7.3.200.0110.00819.39
7.3.190.0080.01216.56
7.3.180.0050.01016.27
7.3.170.0080.01316.30
7.3.160.0080.00816.21
7.2.330.0140.00416.74
7.2.320.0030.01516.69
7.2.310.0110.01216.42
7.2.300.0120.01116.81
7.2.290.0060.01016.41
7.2.60.0080.00816.78
7.2.00.0050.00819.15
7.1.200.0070.00715.85
7.1.100.0040.00818.17
7.1.70.0040.00417.23
7.1.60.0150.00619.30
7.1.50.0070.01616.64
7.1.00.0000.08022.44
7.0.200.0030.00716.50
7.0.60.0200.07321.65
7.0.50.0030.04317.90
7.0.40.0030.04320.05
7.0.30.0300.04720.25
7.0.20.0330.07720.18
7.0.10.0070.08720.07
7.0.00.0170.07020.08
5.6.280.0000.03321.10
5.6.210.0130.07020.62
5.6.200.0030.04718.18
5.6.190.0070.04320.61
5.6.180.0530.07320.58
5.6.170.0370.07720.41
5.6.160.0170.07320.38
5.6.150.0030.05718.12
5.6.140.0030.05318.18
5.6.130.0200.04718.09
5.6.120.0030.07021.05
5.6.110.0100.08021.11
5.6.100.0070.08321.13
5.6.90.0070.08021.00
5.6.80.0100.07720.42
5.5.350.0200.07720.44
5.5.340.0070.08017.98
5.5.330.0070.04320.23
5.5.320.0530.03720.17
5.5.310.0230.05020.29
5.5.300.0030.08017.98
5.5.290.0100.07017.92
5.5.280.0030.08720.87
5.5.270.0070.05020.86
5.5.260.0000.06720.79
5.5.250.0130.07720.48
5.5.240.0100.03720.15

preferences:
54.48 ms | 401 KiB | 5 Q