3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test { private $xuxu = 100 ; public $xuxu = 100; protected $xuxu = 100; } $test= new test(); $arr = (array)$test; var_dump($test); var_dump($arr["\0test\0xuxu"]);

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)
5.4.350.0070.06719.16
5.4.340.0070.07019.07
5.4.320.0030.04319.00
5.4.310.0000.07019.13
5.4.300.0030.07019.19
5.4.290.0030.07318.96
5.4.280.0130.03719.08
5.4.270.0070.05319.16
5.4.260.0070.05018.95
5.4.250.0030.08018.86
5.4.240.0030.04719.22
5.4.230.0000.08019.07
5.4.220.0000.08719.08
5.4.210.0000.07319.25
5.4.200.0030.05019.30
5.4.190.0030.07719.07
5.4.180.0100.03319.05
5.4.170.0070.07018.82
5.4.160.0100.03719.17
5.4.150.0030.05019.06
5.4.140.0100.06016.34
5.4.130.0070.05716.39
5.4.120.0030.07016.45
5.4.110.0070.07016.55
5.4.100.0000.06716.19
5.4.90.0000.04716.46
5.4.80.0070.06716.57
5.4.70.0070.05016.39
5.4.60.0070.04016.23
5.4.50.0030.05716.38
5.4.40.0030.07316.53
5.4.30.0070.04016.52
5.4.20.0070.04016.52
5.4.10.0000.07316.55
5.4.00.0170.04715.80
5.3.290.0000.04714.82
5.3.280.0100.08014.74
5.3.270.0000.08014.50
5.3.260.0070.07314.64
5.3.250.0030.04014.64
5.3.240.0000.03714.52
5.3.230.0030.07314.61
5.3.220.0000.06314.57
5.3.210.0000.07714.55
5.3.200.0030.06014.53
5.3.190.0030.06714.61
5.3.180.0000.07314.77
5.3.170.0000.07014.46
5.3.160.0030.07314.47
5.3.150.0000.08014.47
5.3.140.0070.06714.47
5.3.130.0100.04314.47
5.3.120.0030.06314.53
5.3.110.0100.07314.55
5.3.100.0030.07714.14
5.3.90.0070.07014.02
5.3.80.0030.04713.93
5.3.70.0030.08013.98
5.3.60.0100.05014.00
5.3.50.0030.04314.09
5.3.40.0030.03314.09
5.3.30.0030.03714.12
5.3.20.0070.05013.69
5.3.10.0000.06013.57
5.3.00.0030.05013.71
5.2.170.0030.02713.34
5.2.160.0000.03013.34
5.2.150.0030.04313.34
5.2.140.0000.03313.34
5.2.130.0030.03713.34
5.2.120.0000.06313.34
5.2.110.0000.04013.34
5.2.100.0000.03713.34
5.2.90.0000.03713.34
5.2.80.0030.06313.34
5.2.70.0070.05713.34
5.2.60.0000.03713.34
5.2.50.0070.06013.34
5.2.40.0000.04313.34
5.2.30.0000.05013.34
5.2.20.0030.05313.34
5.2.10.0070.05313.34
5.2.00.0030.06013.34
5.1.60.0000.05313.34
5.1.50.0000.05313.34
5.1.40.0030.03713.34
5.1.30.0070.02313.34
5.1.20.0030.02313.34
5.1.10.0000.04013.34
5.1.00.0030.02313.34
5.0.50.0030.01713.34
5.0.40.0030.01713.34
5.0.30.0000.03313.34
5.0.20.0070.01713.34
5.0.10.0030.01713.34
5.0.00.0030.02713.34
4.4.90.0000.02013.34
4.4.80.0000.02713.34
4.4.70.0000.03313.34
4.4.60.0000.03313.34
4.4.50.0000.02713.34
4.4.40.0000.05713.34
4.4.30.0030.03013.34
4.4.20.0000.01713.34
4.4.10.0030.01313.34
4.4.00.0000.02313.34
4.3.110.0000.01713.34
4.3.100.0000.01713.34
4.3.90.0000.01713.34
4.3.80.0000.03013.34
4.3.70.0000.01313.34
4.3.60.0000.01313.34
4.3.50.0030.01313.34
4.3.40.0000.02313.34
4.3.30.0030.01313.34
4.3.20.0000.01313.34
4.3.10.0030.01313.34
4.3.00.0070.01013.34

preferences:
128.9 ms | 1398 KiB | 7 Q