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));

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.00318.30
8.3.50.0070.00717.87
8.3.40.0040.01218.61
8.3.30.0120.00318.36
8.3.20.0090.00019.07
8.3.10.0030.00623.48
8.3.00.0050.00320.52
8.2.180.0060.00918.03
8.2.170.0070.00722.96
8.2.160.0110.00320.68
8.2.150.0000.00824.18
8.2.140.0030.00524.66
8.2.130.0000.00717.91
8.2.120.0040.00426.35
8.2.110.0090.00021.07
8.2.100.0070.00317.77
8.2.90.0030.00517.71
8.2.80.0000.00817.97
8.2.70.0050.00317.80
8.2.60.0040.00418.16
8.2.50.0030.00618.10
8.2.40.0050.00319.17
8.2.30.0040.00419.05
8.2.20.0000.00718.05
8.2.10.0040.00418.00
8.2.00.0030.00517.46
8.1.270.0080.00020.66
8.1.260.0000.00726.35
8.1.250.0080.00028.09
8.1.240.0030.01017.52
8.1.230.0030.00822.67
8.1.220.0000.00917.74
8.1.210.0050.00318.79
8.1.200.0030.00617.11
8.1.190.0040.00417.10
8.1.180.0030.00618.10
8.1.170.0040.00418.46
8.1.160.0040.00418.88
8.1.150.0040.00418.73
8.1.140.0070.00022.13
8.1.130.0070.00020.11
8.1.120.0000.00717.44
8.1.110.0040.00417.40
8.1.100.0000.00817.40
8.1.90.0000.00817.34
8.1.80.0070.00017.37
8.1.70.0040.00417.34
8.1.60.0030.00617.63
8.1.50.0030.00517.46
8.1.40.0050.00317.40
8.1.30.0080.00317.64
8.1.20.0000.00817.66
8.1.10.0030.00517.50
8.1.00.0000.00717.45
8.0.300.0040.00419.69
8.0.290.0090.00016.63
8.0.280.0000.00718.37
8.0.270.0000.00717.17
8.0.260.0040.00418.37
8.0.250.0000.00716.87
8.0.240.0030.00316.90
8.0.230.0070.00016.75
8.0.220.0030.00616.84
8.0.210.0030.00316.70
8.0.200.0000.00716.87
8.0.190.0000.00716.79
8.0.180.0030.00616.89
8.0.170.0050.00316.82
8.0.160.0040.00416.76
8.0.150.0030.00316.79
8.0.140.0000.00716.76
8.0.130.0030.00313.29
8.0.120.0080.00016.82
8.0.110.0000.00716.84
8.0.100.0000.00816.78
8.0.90.0040.00416.82
8.0.80.0090.00716.83
8.0.70.0030.00616.93
8.0.60.0040.00416.64
8.0.50.0040.00416.67
8.0.30.0090.00917.19
8.0.20.0150.00317.40
8.0.10.0050.00216.98
8.0.00.0090.01716.65
7.4.330.0020.00215.55
7.4.320.0060.00016.57
7.4.300.0040.00416.62
7.4.290.0070.00016.56
7.4.280.0030.00816.61
7.4.270.0000.01016.60
7.4.260.0030.00316.43
7.4.250.0030.00516.58
7.4.240.0040.00416.55
7.4.230.0030.00316.43
7.4.220.0040.00416.39
7.4.210.0050.01116.49
7.4.200.0040.00416.47
7.4.160.0100.00916.39
7.4.140.0100.01017.86
7.4.130.0090.01516.61
7.4.120.0100.01016.43
7.4.110.0170.00516.64
7.4.100.0090.00916.51
7.4.90.0090.00916.50
7.4.80.0140.00819.39
7.4.70.0030.01416.53
7.4.60.0040.01116.54
7.4.50.0100.00716.38
7.4.40.0110.00716.55
7.3.330.0000.00613.11
7.3.320.0030.00313.07
7.3.310.0000.00916.23
7.3.300.0030.00516.12
7.3.290.0040.00416.29
7.3.280.0080.00916.20
7.3.260.0100.00916.34
7.3.240.0110.01116.37
7.3.230.0130.00516.29
7.3.210.0030.01316.35
7.3.200.0070.01316.57
7.3.190.0060.01216.31
7.3.180.0090.00916.54
7.3.170.0140.00316.25
7.3.160.0100.00716.59
7.2.330.0180.00016.30
7.2.320.0090.01316.32
7.2.310.0130.01016.73
7.2.300.0110.01116.25
7.2.290.0140.00416.68

preferences:
49.47 ms | 400 KiB | 5 Q