3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array('page' => array('object' => '')); $ref = &$array['page']; $array['page']['object'] = new stdObject(); //$ref['object'] = new stdClass();

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.70.0100.01016.63
8.3.60.0120.00316.35
8.3.50.0140.00821.84
8.3.40.0090.00618.88
8.3.30.0110.00418.71
8.3.20.0040.00420.13
8.3.10.0070.00021.60
8.3.00.0030.00623.64
8.2.180.0180.00416.75
8.2.170.0000.01422.96
8.2.160.0100.00320.39
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0090.00020.88
8.2.120.0000.00726.35
8.2.110.0000.00919.27
8.2.100.0060.00618.03
8.2.90.0000.00919.18
8.2.80.0000.00817.97
8.2.70.0080.00317.63
8.2.60.0090.00017.80
8.2.50.0030.00718.09
8.2.40.0050.00322.27
8.2.30.0070.00019.42
8.2.20.0040.00417.76
8.2.10.0000.00718.05
8.2.00.0040.00418.03
8.1.280.0140.00425.92
8.1.270.0040.00422.09
8.1.260.0000.00728.09
8.1.250.0030.00628.09
8.1.240.0060.00321.44
8.1.230.0040.00817.51
8.1.220.0000.00817.74
8.1.210.0030.00618.77
8.1.200.0060.00317.35
8.1.190.0030.00517.23
8.1.180.0030.00618.10
8.1.170.0090.00018.39
8.1.160.0070.00020.57
8.1.150.0050.00320.50
8.1.140.0080.00019.38
8.1.130.0080.00017.59
8.1.120.0000.00717.39
8.1.110.0030.00517.37
8.1.100.0040.00417.43
8.1.90.0070.00017.44
8.1.80.0080.00017.40
8.1.70.0030.00317.33
8.1.60.0000.00817.54
8.1.50.0050.00317.37
8.1.40.0040.00417.41
8.1.30.0000.00817.66
8.1.20.0040.00417.53
8.1.10.0040.00417.46
8.1.00.0050.00317.57
8.0.300.0080.00018.77
8.0.290.0070.00016.63
8.0.280.0020.00518.29
8.0.270.0030.00317.10
8.0.260.0000.00617.14
8.0.250.0000.00816.86
8.0.240.0060.00316.84
8.0.230.0030.00316.98
8.0.220.0090.00016.89
8.0.210.0070.00016.94
8.0.200.0030.00716.73
8.0.190.0040.00416.79
8.0.180.0000.00716.78
8.0.170.0000.00716.89
8.0.160.0000.00716.95
8.0.150.0070.00016.79
8.0.140.0050.00316.76
8.0.130.0000.00613.34
8.0.120.0080.00016.87
8.0.110.0000.00816.93
8.0.100.0040.00416.94
8.0.90.0080.00016.83
8.0.80.0110.00416.91
8.0.70.0000.00716.86
8.0.60.0040.00416.75
8.0.50.0040.00316.78
8.0.30.0170.00016.96
8.0.20.0100.00817.40
8.0.10.0050.00216.83
8.0.00.0090.00816.74
7.4.330.0050.00016.78
7.4.320.0030.00316.45
7.4.300.0070.00016.41
7.4.290.0070.00016.58
7.4.280.0000.00716.39
7.4.270.0040.00416.55
7.4.260.0000.01016.55
7.4.250.0030.00616.47
7.4.240.0030.00616.38
7.4.230.0070.00016.61
7.4.220.0030.01416.62
7.4.210.0070.00716.53
7.4.200.0000.00716.58
7.4.160.0080.00816.34
7.4.150.0090.00917.40
7.4.140.0120.01017.86
7.4.130.0100.00716.55
7.4.120.0140.00816.43
7.4.110.0060.01116.56
7.4.100.0060.01216.55
7.4.90.0130.00316.61
7.4.80.0030.01319.39
7.4.70.0130.00316.52
7.4.60.0120.00716.68
7.4.50.0040.00916.42
7.4.40.0120.00916.40
7.4.30.0110.00916.70
7.4.00.0110.00315.05
7.3.330.0030.00313.20
7.3.320.0000.00613.21
7.3.310.0030.00316.15
7.3.300.0030.00316.32
7.3.290.0090.00616.32
7.3.280.0100.00616.30
7.3.270.0040.01417.40
7.3.260.0070.01016.34
7.3.250.0120.00516.40
7.3.240.0130.00616.53
7.3.230.0180.00016.61
7.3.210.0110.00616.57
7.3.200.0130.00719.39
7.3.190.0070.01016.44
7.3.180.0060.00916.48
7.3.170.0060.01216.50
7.3.160.0150.00316.52
7.2.330.0100.00716.49
7.2.320.0080.00816.58
7.2.310.0120.00316.34
7.2.300.0100.00716.45
7.2.290.0090.00616.64
7.2.60.0100.00716.74
7.2.00.0040.01119.22
7.1.200.0050.00515.53
7.1.100.0000.01117.69
7.1.70.0000.01117.15
7.1.60.0070.01719.40
7.1.50.0030.01716.80
7.1.00.0170.06322.53
7.0.200.0450.00314.70
7.0.60.0330.06319.95
7.0.50.0070.08317.84
7.0.40.0000.04320.20
7.0.30.0170.05720.34
7.0.20.0270.06720.09
7.0.10.0070.04320.13
7.0.00.0030.09020.08
5.6.280.0070.04021.12
5.6.210.0070.05320.61
5.6.200.0100.08018.08
5.6.190.0030.05020.43
5.6.180.0300.04720.41
5.6.170.0230.04320.61
5.6.160.0100.08020.71
5.6.150.0000.04018.22
5.6.140.0170.07018.15
5.6.130.0070.08318.16
5.6.120.0070.04021.01
5.6.110.0030.08321.12
5.6.100.0130.07021.08
5.6.90.0100.07021.00
5.6.80.0000.04020.52
5.5.350.0330.04020.52
5.5.340.0070.07317.98
5.5.330.0000.04720.21
5.5.320.0230.07320.24
5.5.310.0330.06320.29
5.5.300.0130.07317.91
5.5.290.0100.07317.88
5.5.280.0100.06720.96
5.5.270.0070.06720.79
5.5.260.0070.07720.96
5.5.250.0100.07720.57
5.5.240.0130.08020.27

preferences:
63.86 ms | 401 KiB | 5 Q