3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = 'foo'; $bar = new stdClass; $bar->$foo = array(10,20,30); var_dump($bar->$foo); $bar->{$foo[0]} = 42; var_dump($bar); $bar->$foo[0] = 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.0140.00416.75
8.3.50.0110.01021.06
8.3.40.0110.00418.91
8.3.30.0040.01118.67
8.3.20.0040.00420.21
8.3.10.0070.00023.53
8.3.00.0080.00023.61
8.2.180.0090.00618.16
8.2.170.0040.01122.96
8.2.160.0070.00719.46
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0040.00419.76
8.2.120.0000.00726.35
8.2.110.0100.00021.14
8.2.100.0040.00717.78
8.2.90.0000.00918.03
8.2.80.0080.00017.97
8.2.70.0060.00617.50
8.2.60.0040.00417.93
8.2.50.0040.00418.07
8.2.40.0060.00322.22
8.2.30.0070.00019.41
8.2.20.0050.00317.62
8.2.10.0000.00718.19
8.2.00.0040.00418.02
8.1.280.0190.00325.92
8.1.270.0080.00024.01
8.1.260.0000.00828.09
8.1.250.0070.00028.09
8.1.240.0100.00021.99
8.1.230.0100.00020.86
8.1.220.0030.00617.74
8.1.210.0050.00318.77
8.1.200.0060.00317.35
8.1.190.0000.00817.23
8.1.180.0040.00918.10
8.1.170.0050.00318.66
8.1.160.0040.00420.76
8.1.150.0000.00718.91
8.1.140.0000.00819.62
8.1.130.0030.00317.73
8.1.120.0040.00317.42
8.1.110.0000.00817.35
8.1.100.0040.00417.39
8.1.90.0040.00417.41
8.1.80.0000.00717.40
8.1.70.0040.00417.46
8.1.60.0040.00417.61
8.1.50.0060.00317.43
8.1.40.0030.00617.39
8.1.30.0040.00417.70
8.1.20.0060.00317.66
8.1.10.0000.00817.55
8.1.00.0000.00817.39
8.0.300.0070.00020.04
8.0.290.0000.00816.63
8.0.280.0040.00418.38
8.0.270.0030.00617.30
8.0.260.0000.00617.30
8.0.250.0030.00317.02
8.0.240.0050.00216.85
8.0.230.0050.00216.79
8.0.220.0040.00416.93
8.0.210.0000.00716.85
8.0.200.0030.00316.99
8.0.190.0090.00016.95
8.0.180.0060.00316.95
8.0.170.0040.00416.84
8.0.160.0000.00816.95
8.0.150.0060.00316.90
8.0.140.0070.00016.73
8.0.130.0000.00513.32
8.0.120.0040.00416.73
8.0.110.0000.00816.75
8.0.100.0040.00416.77
8.0.90.0050.00316.89
8.0.80.0210.00016.86
8.0.70.0000.00716.82
8.0.60.0030.00316.97
8.0.50.0080.00016.73
8.0.30.0070.01217.04
8.0.20.0070.01417.40
8.0.10.0040.00416.79
8.0.00.0180.00716.67
7.4.330.0030.00316.84
7.4.320.0030.00316.39
7.4.300.0030.00316.45
7.4.290.0030.00316.58
7.4.280.0030.00616.52
7.4.270.0000.00716.59
7.4.260.0040.00416.34
7.4.250.0030.00516.45
7.4.240.0040.00316.54
7.4.230.0080.00016.34
7.4.220.0060.01216.56
7.4.210.0090.00716.45
7.4.200.0070.00016.62
7.4.160.0130.00616.37
7.4.150.0060.01217.40
7.4.140.0070.01317.86
7.4.130.0110.00716.52
7.4.120.0090.00916.55
7.4.110.0090.00916.50
7.4.100.0120.00616.60
7.4.90.0060.01216.31
7.4.80.0030.01719.39
7.4.70.0080.00816.53
7.4.60.0100.01016.51
7.4.50.0100.00916.32
7.4.40.0120.01216.63
7.4.30.0100.01316.52
7.4.00.0070.01215.12
7.3.330.0060.00013.08
7.3.320.0000.00513.17
7.3.310.0070.00016.30
7.3.300.0000.00716.33
7.3.290.0070.00016.25
7.3.280.0090.01116.29
7.3.270.0140.00317.40
7.3.260.0090.00616.44
7.3.250.0090.00916.53
7.3.240.0110.00816.41
7.3.230.0060.01216.50
7.3.210.0080.00816.23
7.3.200.0100.01019.39
7.3.190.0090.01016.54
7.3.180.0130.00316.19
7.3.170.0110.00716.43
7.3.160.0090.00916.41
7.3.120.0160.00314.58
7.3.110.0030.01414.81
7.3.100.0070.00714.71
7.3.90.0120.00614.94
7.3.80.0040.01214.91
7.3.70.0030.01014.97
7.3.60.0040.01114.42
7.3.50.0080.00514.75
7.3.40.0110.00414.59
7.3.30.0040.00714.82
7.3.20.0000.01516.84
7.3.10.0080.00816.41
7.3.00.0070.00716.33
7.2.330.0120.00616.35
7.2.320.0130.00416.43
7.2.310.0070.01016.53
7.2.300.0040.01316.63
7.2.290.0160.00016.57
7.2.250.0070.01514.71
7.2.240.0070.01415.38
7.2.230.0040.01115.26
7.2.220.0030.01215.03
7.2.210.0030.00614.98
7.2.200.0030.00615.04
7.2.190.0040.01114.93
7.2.180.0090.00915.14
7.2.170.0090.00614.84
7.2.60.0130.00616.59
7.2.00.0030.01419.27
7.1.330.0000.01315.98
7.1.320.0040.01215.70
7.1.310.0030.00615.77
7.1.300.0080.00615.52
7.1.290.0050.00515.94
7.1.280.0100.00315.72
7.1.270.0130.00015.71
7.1.260.0040.00415.89
7.1.200.0100.00315.73
7.1.100.0150.00617.81
7.1.70.0030.00717.19
7.1.60.0070.01819.30
7.1.50.0070.01517.08
7.1.00.0030.07722.36
7.0.200.0000.00916.70
7.0.60.0400.06021.74
7.0.50.0100.03717.80
7.0.40.0170.06320.29
7.0.30.0230.06020.18
7.0.20.0300.07020.18
7.0.10.0130.03320.17
7.0.00.0070.05320.16
5.6.280.0030.04720.93
5.6.210.0070.08020.70
5.6.200.0070.08018.15
5.6.190.0070.07020.27
5.6.180.0370.04320.48
5.6.170.0370.07720.40
5.6.160.0070.08320.50
5.6.150.0100.08018.15
5.6.140.0100.08018.21
5.6.130.0070.04018.18
5.6.120.0130.07321.00
5.6.110.0030.04320.95
5.6.100.0030.07321.08
5.6.90.0100.05020.99
5.6.80.0030.05320.39
5.5.350.0070.04320.40
5.5.340.0070.07317.93
5.5.330.0100.07320.06
5.5.320.0230.07720.29
5.5.310.0230.04020.32
5.5.300.0030.08017.95
5.5.290.0070.08317.96
5.5.280.0100.04020.72
5.5.270.0100.08020.84
5.5.260.0030.08720.95
5.5.250.0030.07020.61
5.5.240.0070.09320.06

preferences:
46.58 ms | 401 KiB | 5 Q