3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test { public $chciDoArray1 = '1'; public $chciDoArray2 = '2'; public $chciDoArray3 = '3'; public $neChciDoArray = 'oops'; public function ohMyHandsWillFallOff() { return [ $this->chciDoArray1, $this->chciDoArray2, $this->chciDoArray3, ]; } } $a = new test(); var_dump((array)$a, json_decode(json_encode($a), true), $a->ohMyHandsWillFallOff());

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.0150.00318.43
8.3.50.0060.01217.96
8.3.40.0090.00618.58
8.3.30.0060.00918.59
8.3.20.0050.00319.13
8.3.10.0030.00621.95
8.3.00.0080.00020.49
8.2.180.0120.00318.16
8.2.170.0040.01122.96
8.2.160.0150.00020.86
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0050.00318.03
8.2.120.0070.00026.35
8.2.110.0040.00421.11
8.2.100.0030.00819.35
8.2.90.0000.00817.63
8.2.80.0050.00317.97
8.2.70.0000.00817.91
8.2.60.0000.00818.09
8.2.50.0080.00018.10
8.2.40.0050.00319.47
8.2.30.0040.00419.10
8.2.20.0040.00418.05
8.2.10.0050.00218.11
8.2.00.0050.00317.56
8.1.280.0190.00025.92
8.1.270.0040.00420.60
8.1.260.0000.00826.35
8.1.250.0000.00728.09
8.1.240.0060.00322.58
8.1.230.0040.00817.77
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0060.00317.00
8.1.190.0000.00817.10
8.1.180.0030.00618.10
8.1.170.0000.00818.65
8.1.160.0040.00418.89
8.1.150.0050.00318.94
8.1.140.0000.00722.14
8.1.130.0030.00320.19
8.1.120.0040.00417.47
8.1.110.0000.00717.45
8.1.100.0090.00017.36
8.1.90.0000.00717.39
8.1.80.0040.00417.45
8.1.70.0000.00817.39
8.1.60.0050.00317.48
8.1.50.0040.00417.50
8.1.40.0040.00417.54
8.1.30.0090.00317.72
8.1.20.0000.00817.51
8.1.10.0030.00617.48
8.1.00.0040.00417.43
8.0.300.0040.00418.77
8.0.290.0030.00616.75
8.0.280.0040.00418.32
8.0.270.0080.00017.13
8.0.260.0030.00318.36
8.0.250.0030.00316.95
8.0.240.0040.00416.79
8.0.230.0030.00316.96
8.0.220.0060.00316.87
8.0.210.0020.00516.90
8.0.200.0000.00716.95
8.0.190.0000.00716.80
8.0.180.0030.00516.80
8.0.170.0060.00316.97
8.0.160.0040.00416.95
8.0.150.0040.00416.72
8.0.140.0000.00716.74
8.0.130.0060.00013.28
8.0.120.0040.00416.85
8.0.110.0080.00016.97
8.0.100.0040.00416.79
8.0.90.0080.00016.72
8.0.80.0120.00416.88
8.0.70.0030.00516.71
8.0.60.0040.00416.79
8.0.50.0040.00416.71
8.0.30.0080.01117.21
8.0.20.0090.00917.40
8.0.10.0050.00317.07
8.0.00.0180.00916.81
7.4.330.0020.00215.55
7.4.320.0060.00016.42
7.4.300.0070.00016.60
7.4.290.0050.00316.39
7.4.280.0040.00716.51
7.4.270.0050.00616.43
7.4.260.0000.00716.45
7.4.250.0050.00316.53
7.4.240.0040.00416.65
7.4.230.0000.00716.49
7.4.220.0040.00416.42
7.4.210.0060.00916.50
7.4.200.0050.00216.53
7.4.160.0080.01016.58
7.4.140.0080.01117.86
7.4.130.0060.01216.56
7.4.120.0090.01016.48
7.4.110.0170.00916.51
7.4.100.0070.01416.57
7.4.90.0110.00716.52
7.4.80.0080.00919.39
7.4.70.0110.00816.39
7.4.60.0060.01016.52
7.4.50.0120.00216.55
7.4.40.0060.01116.60
7.3.330.0000.00513.30
7.3.320.0030.00313.29
7.3.310.0060.00316.31
7.3.300.0050.00216.18
7.3.290.0000.00816.18
7.3.280.0090.00616.26
7.3.260.0080.01116.35
7.3.240.0120.00816.34
7.3.230.0120.00616.49
7.3.210.0100.00716.46
7.3.200.0060.01616.64
7.3.190.0100.01216.45
7.3.180.0070.01116.59
7.3.170.0100.01616.46
7.3.160.0170.00616.35
7.2.330.0060.01216.49
7.2.320.0160.00716.64
7.2.310.0130.00316.49
7.2.300.0030.02016.74
7.2.290.0060.01016.55

preferences:
52.14 ms | 401 KiB | 5 Q