3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test { public $testArr; public function test() { $testObj = new stdClass(); $testObj->foo = 'foo'; $this->testArr['test'] = $testObj; return $testObj; } } $test = $this->test(); $test->foo = 'bar'; var_dump($this->testArr['test']);

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.0130.00716.50
8.3.50.0120.00621.92
8.3.40.0150.00018.67
8.3.30.0110.00418.79
8.3.20.0040.00420.24
8.3.10.0060.00320.61
8.3.00.0040.00423.48
8.2.180.0070.00716.62
8.2.170.0110.00422.96
8.2.160.0070.01022.13
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0050.00320.82
8.2.120.0080.00026.35
8.2.110.0060.00622.08
8.2.100.0110.00017.80
8.2.90.0090.00019.09
8.2.80.0000.00817.97
8.2.70.0060.00317.35
8.2.60.0040.00417.80
8.2.50.0080.00018.09
8.2.40.0050.00322.25
8.2.30.0000.00719.29
8.2.20.0040.00417.56
8.2.10.0070.00017.92
8.2.00.0030.00517.88
8.1.280.0150.00625.92
8.1.270.0140.00322.05
8.1.260.0040.00428.09
8.1.250.0000.00728.09
8.1.240.0060.00323.98
8.1.230.0080.00317.77
8.1.220.0070.00017.74
8.1.210.0000.00918.77
8.1.200.0030.00617.35
8.1.190.0040.00417.10
8.1.180.0090.00018.10
8.1.170.0050.00318.50
8.1.160.0030.00320.71
8.1.150.0000.00820.61
8.1.140.0030.00519.46
8.1.130.0000.00717.66
8.1.120.0040.00417.37
8.1.110.0050.00217.29
8.1.100.0000.00817.30
8.1.90.0050.00217.36
8.1.80.0030.00517.22
8.1.70.0030.00317.34
8.1.60.0000.00817.50
8.1.50.0030.00617.35
8.1.40.0140.00017.48
8.1.30.0080.00017.56
8.1.20.0050.00217.51
8.1.10.0000.00717.57
8.1.00.0040.00417.28
8.0.300.0060.00318.77
8.0.290.0000.00716.75
8.0.280.0070.00018.44
8.0.270.0000.00717.19
8.0.260.0030.00317.14
8.0.250.0000.00717.01
8.0.240.0000.00716.95
8.0.230.0030.00316.96
8.0.220.0000.00716.92
8.0.210.0000.00716.87
8.0.200.0030.00316.97
8.0.190.0000.00816.85
8.0.180.0040.00416.86
8.0.170.0000.00916.83
8.0.160.0040.00416.74
8.0.150.0030.00316.71
8.0.140.0080.00416.89
8.0.130.0000.00613.31
8.0.120.0040.00416.88
8.0.110.0000.00716.81
8.0.100.0000.00716.86
8.0.90.0000.00716.96
8.0.80.0100.00616.95
8.0.70.0000.00716.90
8.0.60.0040.00416.77
8.0.50.0000.00816.79
8.0.30.0110.01117.05
8.0.20.0110.00917.40
8.0.10.0000.00816.85
8.0.00.0070.01016.68
7.4.330.0000.00516.88
7.4.320.0060.00016.47
7.4.300.0000.00616.57
7.4.290.0060.00016.46
7.4.280.0030.00516.54
7.4.270.0070.00016.35
7.4.260.0040.00416.33
7.4.250.0000.00916.36
7.4.240.0040.00416.54
7.4.230.0030.00316.57
7.4.220.0130.00616.62
7.4.210.0040.01416.42
7.4.200.0000.00716.36
7.4.160.0120.00816.28
7.4.150.0120.00617.40
7.4.140.0080.01017.86
7.4.130.0110.01316.56
7.4.120.0080.01316.45
7.4.110.0030.01516.47
7.4.100.0030.01316.57
7.4.90.0100.00716.68
7.4.80.0120.00619.39
7.4.70.0130.00316.34
7.4.60.0060.01416.51
7.4.50.0070.01116.46
7.4.40.0090.00916.36
7.4.30.0120.01216.63
7.4.00.0080.01015.07
7.3.330.0000.00613.11
7.3.320.0030.00313.30
7.3.310.0030.00316.27
7.3.300.0000.00716.15
7.3.290.0010.01416.25
7.3.280.0100.00716.29
7.3.270.0060.01317.40
7.3.260.0060.01516.41
7.3.250.0070.01316.29
7.3.240.0050.01116.39
7.3.230.0120.01216.39
7.3.210.0120.00816.51
7.3.200.0100.00619.39
7.3.190.0000.01516.46
7.3.180.0030.01316.48
7.3.170.0120.00416.48
7.3.160.0060.00916.40
7.3.120.0070.00714.80
7.3.110.0100.01014.76
7.3.100.0100.00714.63
7.3.90.0120.00614.56
7.3.80.0030.00614.50
7.3.70.0030.00514.77
7.3.60.0090.00614.71
7.3.50.0000.01114.53
7.3.40.0040.01014.78
7.3.30.0090.00614.59
7.3.20.0060.00616.63
7.3.10.0060.00916.55
7.3.00.0080.00616.38
7.2.330.0160.00316.27
7.2.320.0110.01116.41
7.2.310.0140.00316.42
7.2.300.0100.01316.48
7.2.290.0120.00416.57
7.2.250.0070.01414.78
7.2.240.0100.01014.67
7.2.230.0090.00914.87
7.2.220.0000.00914.85
7.2.210.0000.01314.67
7.2.200.0070.00314.84
7.2.190.0100.00714.90
7.2.180.0060.00614.73
7.2.170.0030.00814.96
7.2.130.0030.01316.87
7.2.120.0060.00916.45
7.2.110.0070.00716.45
7.2.100.0040.01116.57
7.2.90.0080.00416.75
7.2.80.0100.00716.83
7.2.70.0100.00716.84
7.2.60.0120.00316.66
7.2.50.0100.00716.53
7.2.40.0110.00016.83
7.2.30.0070.01016.54
7.2.20.0060.00916.89
7.2.10.0070.00316.82
7.2.00.0030.00917.99
7.1.330.0120.00315.30
7.1.320.0030.00615.70
7.1.310.0030.01015.54
7.1.300.0080.00015.52
7.1.290.0050.00315.48
7.1.280.0040.01415.27
7.1.270.0060.00615.20
7.1.260.0060.00915.39
7.1.250.0070.00715.55
7.1.200.0030.00615.79
7.1.100.0030.01017.98
7.1.70.0020.00516.90
7.1.60.0200.00319.40
7.1.50.0110.01116.60
7.1.00.0030.07722.48
7.0.200.0210.00714.54
7.0.60.0370.03719.84
7.0.50.0130.05017.83
7.0.40.0170.08019.96
7.0.30.0300.07720.06
7.0.20.0100.05020.15
7.0.10.0070.06320.07
7.0.00.0100.07020.23
5.6.280.0030.06321.09
5.6.210.0070.05020.52
5.6.200.0230.06018.20
5.6.190.0130.07020.45
5.6.180.0300.04320.65
5.6.170.0200.04720.54
5.6.160.0100.08020.46
5.6.150.0030.04018.27
5.6.140.0100.03318.18
5.6.130.0030.04018.16
5.6.120.0130.07321.12
5.6.110.0000.06020.96
5.6.100.0130.04321.08
5.6.90.0070.07021.16
5.6.80.0100.03320.53
5.5.350.0130.07720.43
5.5.340.0100.07017.99
5.5.330.0100.07720.31
5.5.320.0570.06720.29
5.5.310.0200.06320.41
5.5.300.0070.08017.95
5.5.290.0100.06018.01
5.5.280.0000.05020.89
5.5.270.0030.08720.68
5.5.260.0070.04320.87
5.5.250.0030.06020.69
5.5.240.0300.04720.26

preferences:
56.59 ms | 401 KiB | 5 Q