3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $baz = array('bazz' => null); public function bar() { $key = 'baz'; $this->$key['bazz'] = 123; var_dump($this->$key); } } $a = (new Foo()); var_dump([$a => '123']);

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.00716.75
8.3.50.0120.00617.94
8.3.40.0110.00318.82
8.3.30.0110.00418.81
8.3.20.0040.00420.09
8.3.10.0060.00321.69
8.3.00.0090.00019.79
8.2.180.0080.00818.41
8.2.170.0100.00722.96
8.2.160.0070.00719.01
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00419.38
8.2.120.0000.00726.35
8.2.110.0030.00619.27
8.2.100.0040.00718.03
8.2.90.0040.00419.08
8.2.80.0080.00017.97
8.2.70.0060.00617.37
8.2.60.0040.00418.04
8.2.50.0000.00818.10
8.2.40.0000.00820.55
8.2.30.0070.00019.13
8.2.20.0040.00417.94
8.2.10.0040.00417.94
8.2.00.0030.00517.91
8.1.280.0170.00325.92
8.1.270.0040.00422.24
8.1.260.0050.00226.35
8.1.250.0070.00028.09
8.1.240.0060.00323.88
8.1.230.0070.00717.70
8.1.220.0080.00017.78
8.1.210.0000.00818.77
8.1.200.0030.00617.35
8.1.190.0030.00617.22
8.1.180.0000.00818.10
8.1.170.0040.00418.56
8.1.160.0000.00718.93
8.1.150.0100.00018.77
8.1.140.0050.00219.51
8.1.130.0000.00718.86
8.1.120.0000.00817.38
8.1.110.0030.00517.22
8.1.100.0080.00017.38
8.1.90.0040.00417.41
8.1.80.0040.00417.42
8.1.70.0040.00417.37
8.1.60.0060.00317.49
8.1.50.0030.00517.54
8.1.40.0100.00817.42
8.1.30.0000.00817.54
8.1.20.0000.00917.70
8.1.10.0000.00717.49
8.1.00.0000.00817.55
8.0.300.0000.00718.77
8.0.290.0080.00016.63
8.0.280.0000.00718.46
8.0.270.0000.00717.11
8.0.260.0070.00016.82
8.0.250.0000.00716.89
8.0.240.0060.00316.92
8.0.230.0070.00016.95
8.0.220.0000.00816.81
8.0.210.0030.00316.88
8.0.200.0000.00716.97
8.0.190.0050.00316.94
8.0.180.0000.00816.88
8.0.170.0000.00716.85
8.0.160.0000.00816.91
8.0.150.0000.00916.85
8.0.140.0050.00316.73
8.0.130.0050.00013.29
8.0.120.0040.00416.77
8.0.110.0000.00716.84
8.0.100.0000.00717.00
8.0.90.0000.00816.77
8.0.80.0100.01116.88
8.0.70.0070.00016.93
8.0.60.0040.00316.84
8.0.50.0070.00016.69
8.0.30.0090.00917.07
8.0.20.0120.00817.40
8.0.10.0000.00716.89
8.0.00.0070.01016.96
7.4.330.0000.00615.55
7.4.320.0030.00316.50
7.4.300.0060.00016.44
7.4.290.0000.00716.49
7.4.280.0070.00016.46
7.4.270.0000.00716.42
7.4.260.0070.00016.44
7.4.250.0000.00716.48
7.4.240.0070.00016.48
7.4.230.0070.00016.47
7.4.220.0060.01216.55
7.4.210.0000.01416.61
7.4.200.0050.00316.52
7.4.160.0070.01016.45
7.4.150.0030.01317.40
7.4.140.0140.00617.86
7.4.130.0060.01416.45
7.4.120.0140.00616.52
7.4.110.0080.00816.63
7.4.100.0160.00016.38
7.4.90.0070.01016.48
7.4.80.0060.01219.39
7.4.70.0140.00316.67
7.4.60.0090.00616.31
7.4.50.0040.00816.39
7.4.40.0080.00816.30
7.4.30.0070.01016.51
7.4.00.0030.01314.85
7.3.330.0020.00213.33
7.3.320.0000.00513.30
7.3.310.0040.00416.10
7.3.300.0030.00316.22
7.3.290.0080.01016.27
7.3.280.0070.01016.29
7.3.270.0120.00617.40
7.3.260.0120.00516.47
7.3.250.0160.00216.34
7.3.240.0130.00716.29
7.3.230.0130.00316.48
7.3.210.0070.01016.39
7.3.200.0120.00316.19
7.3.190.0000.01716.23
7.3.180.0180.00416.24
7.3.170.0060.01616.34
7.3.160.0080.00816.18
7.3.120.0060.00914.89
7.3.110.0100.00714.47
7.3.100.0030.01014.73
7.3.90.0070.00714.67
7.3.80.0030.01414.61
7.3.70.0090.00614.61
7.3.60.0040.01414.87
7.3.50.0110.00414.65
7.3.40.0130.00014.81
7.3.30.0100.00714.55
7.3.20.0000.01816.71
7.3.10.0100.00716.48
7.3.00.0060.00816.45
7.2.330.0090.00916.59
7.2.320.0120.00616.68
7.2.310.0130.00316.47
7.2.300.0000.01716.67
7.2.290.0170.00016.64
7.2.240.0000.01414.87
7.2.230.0070.01114.92
7.2.220.0060.01214.57
7.2.210.0100.00614.93
7.2.200.0030.01214.88
7.2.190.0060.00614.86
7.2.180.0060.00614.95
7.2.170.0070.00714.91
7.2.160.0000.01415.01
7.2.150.0070.00716.46
7.2.140.0040.01116.91
7.2.130.0040.01216.73
7.2.120.0060.00716.70
7.2.110.0110.00316.66
7.2.100.0030.01316.79
7.2.90.0080.00516.61
7.2.80.0030.01116.81
7.2.70.0060.00916.83
7.2.60.0050.00816.73
7.2.50.0050.00716.71
7.2.40.0050.00816.89
7.2.30.0060.00816.69
7.2.20.0050.00816.81
7.2.10.0060.00816.84
7.2.00.0070.00717.71
7.1.330.0030.01315.54
7.1.320.0060.00615.83
7.1.310.0070.00715.73
7.1.300.0030.01015.63
7.1.290.0070.00715.69
7.1.280.0060.00915.64
7.1.270.0030.01115.71
7.1.260.0080.00415.55
7.1.250.0050.01015.58
7.1.240.0070.00715.95
7.1.230.0070.00315.69
7.1.220.0070.00715.48
7.1.210.0070.00715.76
7.1.200.0040.00715.65
7.1.190.0060.00915.59
7.1.180.0040.00715.68
7.1.170.0070.00715.82
7.1.160.0030.01315.81
7.1.150.0060.00615.61
7.1.140.0070.00715.85
7.1.130.0050.00315.47
7.1.120.0090.00415.68
7.1.110.0000.01315.70
7.1.100.0050.00716.98
7.1.90.0030.00915.59
7.1.80.0030.01015.79
7.1.70.0030.00816.44
7.1.60.0130.00825.31
7.1.50.0050.01225.16
7.1.40.0120.01125.05
7.1.30.0130.00825.16
7.1.20.0150.00725.14
7.1.10.0030.00916.14
7.1.00.0050.01016.16
7.0.330.0070.00315.37
7.0.320.0000.01515.20
7.0.310.0040.01115.27
7.0.300.0000.01315.31
7.0.290.0090.00315.50
7.0.280.0060.00615.17
7.0.270.0000.01415.05
7.0.260.0050.00515.25
7.0.250.0000.01215.14
7.0.240.0060.00615.37
7.0.230.0070.00715.11
7.0.220.0040.00415.52
7.0.210.0080.00615.55
7.0.200.0020.01316.01
7.0.190.0060.00915.89
7.0.180.0110.00515.74
7.0.170.0030.01015.61
7.0.160.0070.00515.65
7.0.150.0040.00715.62
7.0.140.0030.00915.72
7.0.130.0060.00716.03
7.0.120.0040.00815.83
7.0.110.0070.00615.82
7.0.100.0080.00515.65
7.0.90.0090.00515.59
7.0.80.0040.01016.02
7.0.70.0040.01015.96
7.0.60.0030.00815.70
7.0.50.0060.00815.80
7.0.40.0060.00715.01
7.0.30.0100.00314.68
7.0.20.0090.00414.92
7.0.10.0050.00715.02
7.0.00.0050.00614.86
5.6.380.0030.01214.04

preferences:
40.15 ms | 400 KiB | 5 Q