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 [ 'chciDoArray1' => $this->chciDoArray1, 'chciDoArray2' => $this->chciDoArray2, 'chciDoArray3' => $this->chciDoArray3, ]; } public function __toArray() { return [ 'chciDoArray1' => $this->chciDoArray1, 'chciDoArray2' => $this->chciDoArray2, 'chciDoArray3' => $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.0110.00418.43
8.3.50.0140.00418.31
8.3.40.0120.00318.87
8.3.30.0100.00618.62
8.3.20.0040.00419.02
8.3.10.0050.00321.87
8.3.00.0080.00020.62
8.2.180.0070.00718.29
8.2.170.0060.00922.96
8.2.160.0060.00920.64
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0080.00018.16
8.2.120.0000.00826.35
8.2.110.0060.00320.99
8.2.100.0060.00619.63
8.2.90.0000.00817.75
8.2.80.0040.00417.97
8.2.70.0080.00018.03
8.2.60.0030.00518.03
8.2.50.0050.00318.10
8.2.40.0050.00319.38
8.2.30.0040.00419.25
8.2.20.0020.00518.04
8.2.10.0000.00718.14
8.2.00.0000.00817.55
8.1.280.0040.01425.92
8.1.270.0040.00420.49
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0030.00722.70
8.1.230.0030.00917.77
8.1.220.0030.00517.74
8.1.210.0050.00318.77
8.1.200.0040.00417.35
8.1.190.0000.00817.10
8.1.180.0060.00318.10
8.1.170.0080.00018.59
8.1.160.0050.00218.82
8.1.150.0000.00818.80
8.1.140.0070.00022.21
8.1.130.0000.00720.10
8.1.120.0020.00517.44
8.1.110.0000.00717.47
8.1.100.0020.00517.33
8.1.90.0040.00417.40
8.1.80.0050.00317.38
8.1.70.0050.00317.38
8.1.60.0040.00417.57
8.1.50.0030.00617.50
8.1.40.0040.00417.58
8.1.30.0100.00317.63
8.1.20.0000.00717.69
8.1.10.0000.00817.47
8.1.00.0040.00417.43
8.0.300.0040.00418.78
8.0.290.0070.00016.63
8.0.280.0000.00718.28
8.0.270.0030.00317.09
8.0.260.0030.00318.32
8.0.250.0030.00516.97
8.0.240.0060.00016.83
8.0.230.0070.00016.91
8.0.220.0000.00816.75
8.0.210.0030.00316.82
8.0.200.0030.00516.92
8.0.190.0030.00516.87
8.0.180.0030.00616.85
8.0.170.0000.00916.88
8.0.160.0040.00416.81
8.0.150.0000.00716.78
8.0.140.0040.00416.86
8.0.130.0050.00013.34
8.0.120.0050.00316.83
8.0.110.0040.00416.76
8.0.100.0000.00816.73
8.0.90.0000.00716.84
8.0.80.0050.01016.81
8.0.70.0040.00416.79
8.0.60.0040.00416.81
8.0.50.0050.00216.73
8.0.30.0100.00817.13
8.0.20.0160.01217.40
8.0.10.0070.00016.94
8.0.00.0110.01016.95
7.4.330.0030.00315.55
7.4.320.0030.00316.43
7.4.300.0000.00616.62
7.4.290.0080.00016.59
7.4.280.0040.00716.57
7.4.270.0060.00316.52
7.4.260.0070.00016.41
7.4.250.0050.00416.59
7.4.240.0040.00416.51
7.4.230.0030.00316.64
7.4.220.0080.00016.60
7.4.210.0080.00616.58
7.4.200.0030.00316.65
7.4.160.0080.00816.48
7.4.140.0120.00817.86
7.4.130.0100.00716.46
7.4.120.0090.01016.45
7.4.110.0090.00916.57
7.4.100.0100.01116.38
7.4.90.0120.00716.57
7.4.80.0100.01419.39
7.4.70.0110.00616.55
7.4.60.0120.00516.48
7.4.50.0070.00716.36
7.4.40.0030.01416.60
7.4.00.0070.01114.88
7.3.330.0050.00013.24
7.3.320.0060.00013.13
7.3.310.0030.00616.42
7.3.300.0030.00616.33
7.3.290.0030.00316.36
7.3.280.0060.00816.32
7.3.260.0110.00716.38
7.3.240.0140.00616.41
7.3.230.0130.00316.34
7.3.210.0100.00716.27
7.3.200.0100.00716.63
7.3.190.0030.01616.21
7.3.180.0090.01116.62
7.3.170.0150.00916.52
7.3.160.0120.00616.39
7.3.10.0060.00316.30
7.3.00.0070.00316.15
7.2.330.0100.01016.55
7.2.320.0020.02216.75
7.2.310.0100.00716.55
7.2.300.0070.01016.56
7.2.290.0140.00416.66
7.2.130.0030.01016.59
7.2.120.0070.00716.54
7.2.110.0120.01515.87
7.2.100.0140.00915.71
7.2.90.0120.00915.56
7.2.80.0120.01015.82
7.2.70.0180.00315.75
7.2.60.0170.00915.82
7.2.50.0110.00915.65
7.2.40.0160.00815.93
7.2.30.0140.00516.05
7.2.20.0230.00915.76
7.2.10.0130.01216.11
7.2.00.0060.01315.83
7.1.250.0050.00515.64
7.1.230.0300.00414.00
7.1.220.0190.01013.99
7.1.210.0200.00713.84
7.1.200.0110.01413.50
7.1.190.0220.00713.79
7.1.180.0160.01013.77
7.1.170.0270.00013.91
7.1.160.0220.00614.03
7.1.150.0190.01013.66
7.1.140.0270.00313.98
7.1.130.0230.00713.94
7.1.120.0220.01113.86
7.1.110.0300.00013.64
7.1.100.0200.00713.67
7.1.90.0190.00913.66
7.1.80.0180.00913.70
7.1.70.0240.00613.69
7.1.60.0290.01831.43
7.1.50.0350.01231.51
7.1.40.0370.00731.61
7.1.30.0320.02331.54
7.1.20.0430.01131.62
7.1.10.0270.00913.49
7.1.00.0300.01013.47
5.6.380.0090.01214.29

preferences:
56.31 ms | 401 KiB | 5 Q