3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Everything you enter here will be executed by our servers. Try it! class Framework { const NAME = "Microd"; const SOURCE_VERSION = "0.1.0"; const DATABASE_VERSION = "0.1.0"; function __construct() { echo "Framework Start\n"; } function __destruct() { echo "Framework End\n"; } } class Test extend Framework { const NAME = "Microd"; const SOURCE_VERSION = "0.1.0"; const DATABASE_VERSION = "0.1.0"; function __construct() { echo "Test Start\n"; } function __destruct() { echo "Test End\n"; } } $framework = new Framework(); //echo \Microd\Framework::DATABASE_VERSION; $test = new Test();

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.170.0100.04512.40
5.4.160.0080.04412.40
5.4.150.0060.04312.40
5.4.140.0060.04312.09
5.4.130.0070.04212.07
5.4.120.0070.03812.04
5.4.110.0080.03912.03
5.4.100.0080.03812.03
5.4.90.0070.04312.03
5.4.80.0090.04412.03
5.4.70.0090.03912.03
5.4.60.0080.04112.03
5.4.50.0080.04412.03
5.4.40.0060.04012.01
5.4.30.0080.03812.01
5.4.20.0080.04212.01
5.4.10.0100.04312.01
5.4.00.0110.04311.50
5.3.270.0090.04412.72
5.3.260.0080.04512.72
5.3.250.0080.04012.72
5.3.240.0080.04012.72
5.3.230.0070.04212.71
5.3.220.0070.04212.68
5.3.210.0070.04112.68
5.3.200.0070.04512.68
5.3.190.0080.04612.68
5.3.180.0080.04312.67
5.3.170.0080.04012.67
5.3.160.0060.04012.67
5.3.150.0060.03812.67
5.3.140.0070.03712.66
5.3.130.0070.03912.66
5.3.120.0090.04512.66
5.3.110.0060.04312.66
5.3.100.0090.03712.13
5.3.90.0050.03912.11
5.3.80.0070.03812.09
5.3.70.0080.04212.09
5.3.60.0060.04412.08
5.3.50.0070.04212.03
5.3.40.0080.04412.03
5.3.30.0090.04011.99
5.3.20.0080.03811.77
5.3.10.0060.04411.73
5.3.00.0090.04011.72

preferences:
136.35 ms | 1394 KiB | 7 Q