3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new class { public $foo = 'foo'; } function change($a) { $a->foo = 'bar'; } change($a); echo $a->foo;

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.2.40.1650.00717.36
7.2.30.0110.00817.62
7.2.20.0060.01117.82
7.2.10.0080.01517.70
7.2.00.0070.01017.86
7.1.160.1730.00816.42
7.1.150.2270.01116.65
7.1.140.1510.01116.55
7.1.130.0090.00816.64
7.1.120.0050.01116.40
7.1.110.1080.00815.95
7.1.100.0090.00716.09
7.1.90.0940.00815.70
7.1.80.0950.00615.84
7.1.70.0870.01015.23
7.1.60.1290.01133.09
7.1.50.0260.00932.65
7.1.40.0240.01132.48
7.1.30.0270.01332.46
7.1.20.2080.01132.50
7.1.10.1250.00714.41
7.1.00.0930.00814.54

preferences:
126.29 ms | 1398 KiB | 7 Q