3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public function __get( $property ) { if ( 'bla' === $property ) { echo 'Initializing Text->bla' . PHP_EOL; $this->bla = 'Value'; return $this->bla; } trigger_error( 'Undefined property via __get(): ' . $property E_USER_NOTICE); return null; } } $test = new Test(); echo $test->bla . PHP_EOL; echo $test->bla . PHP_EOL; echo $test->bla . PHP_EOL; echo $test->kaka . PHP_EOL; echo $test->bla . PHP_EOL;

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)
7.1.70.0000.01917.05
7.1.60.0250.01135.14
7.1.50.0150.01934.70
7.1.40.0160.02034.50
7.1.30.0320.00434.42
7.1.20.0220.01534.37
7.1.10.0000.01716.11
7.1.00.0060.01316.37
7.0.200.0000.01716.58
7.0.190.0070.01116.46
7.0.180.0080.00816.21
7.0.170.0060.01116.11
7.0.160.0040.01516.13
7.0.150.0080.00816.16
7.0.140.0070.01116.05
7.0.130.0030.01516.41
7.0.120.0060.01216.41
7.0.110.0090.00816.25
7.0.100.0000.01616.08
7.0.90.0100.01016.06
7.0.80.0000.01616.13
7.0.70.0050.00915.91
7.0.60.0060.00916.12
7.0.50.0060.01216.20
7.0.40.0050.01216.38
7.0.30.0060.01116.50
7.0.20.0110.00616.44
7.0.10.0030.01416.32
7.0.00.0030.01316.29

preferences:
247.12 ms | 1394 KiB | 7 Q