3v4l.org

run code in 500+ PHP versions simultaneously
<?php class A { private $var = 'test'; public function test() { echo $this->var . "\n"; } public function __get($name) { trigger_error('In __get()', E_USER_NOTICE); return $this->$name ?? NULL; } } class B { } $a = new A(); $b = new B(); $a->test(); echo($a->var); var_dump($b->blag);

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.5.80.0100.00818.33
8.5.70.0080.00516.77
8.5.60.0120.00516.86
8.5.50.0170.00516.61
8.5.30.0090.00918.16
8.5.20.0100.00620.12
8.5.10.0120.00816.75
8.5.00.0130.00922.88
8.4.230.0080.00519.70
8.4.220.0140.01019.63
8.4.210.0060.00321.50
8.4.180.0110.01219.75
8.4.170.0120.00823.91
8.4.160.0130.01222.05
8.4.150.0060.00716.86
8.4.140.0350.00717.48
8.4.130.0150.00617.96
8.4.120.0360.00917.75
8.4.110.0330.01117.69
8.4.100.0360.00817.87
8.4.90.0350.01017.83
8.4.80.0390.00717.66
8.4.70.0360.00817.84
8.4.60.0370.01217.71
8.4.50.0370.00717.80
8.4.40.0360.01117.58
8.4.30.0390.00917.71
8.4.20.0360.01117.48
8.4.10.0460.00317.34
8.3.320.0060.00318.40
8.3.310.0110.01018.48
8.3.300.0120.01120.87
8.3.290.0130.01120.81
8.3.280.0130.00618.54
8.3.270.0400.00616.63
8.3.260.0340.00816.45
8.3.250.0350.00716.63
8.3.240.0300.01216.93
8.3.230.0380.00816.43
8.3.220.0360.00716.85
8.3.210.0360.00616.64
8.3.200.0340.00916.61
8.3.190.0350.00816.63
8.3.180.0350.01016.36
8.3.170.0370.00916.34
8.3.160.0350.01116.53
8.3.150.0400.00516.48
8.3.140.0360.00816.63
8.3.130.0320.00816.56
8.3.120.0310.00916.42
8.3.110.0320.00916.70
8.3.100.0410.00616.62
8.3.90.0400.00916.69
8.3.80.0390.00716.45
8.3.70.0350.01116.42
8.3.60.0400.00616.48
8.3.50.0370.00816.45
8.3.40.0360.00917.42
8.3.30.0310.00717.38
8.3.20.0270.01417.27
8.3.10.0280.00817.14
8.3.00.0210.00717.30
8.2.320.0120.00818.14
8.2.310.0100.01018.12
8.2.300.0040.00620.26
8.2.290.0290.00716.69
8.2.280.0260.01116.80
8.2.270.0300.00816.37
8.2.260.0310.00816.61
8.2.250.0320.00616.51
8.2.240.0310.00816.45
8.2.230.0310.00716.59
8.2.220.0310.01016.60
8.2.210.0300.00916.65
8.2.200.0320.00716.40
8.2.190.0320.00816.55
8.2.180.0270.01216.60
8.2.170.0300.00817.57
8.2.160.0350.00617.48
8.2.150.0280.01017.63
8.2.140.0310.00817.14
8.2.130.0300.00817.35
8.2.120.0310.00717.43
8.2.110.0310.00817.44
8.2.100.0260.01217.64
8.2.90.0290.00817.46
8.2.80.0290.00817.50
8.2.70.0310.00917.25
8.2.60.0300.00917.54
8.2.50.0330.00517.34
8.2.40.0340.00717.25
8.2.30.0270.01117.30
8.2.20.0330.00617.32
8.2.10.0290.00917.29
8.2.00.0360.00817.17
8.1.340.0090.01021.55

preferences:
29.27 ms | 889 KiB | 5 Q