3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Demo { public function __construct( final public string $v ) {} } $d = new Demo( "FOO" ); var_dump( $d ); $r = new ReflectionProperty( Demo::class, 'v' ); var_dump( $r->isFinal() );

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.4.40.0420.00617.52
8.4.30.0440.00416.96
8.4.20.0380.01017.27
8.4.10.0340.01417.11
8.3.170.0340.01016.54
8.3.160.0380.00916.13
8.3.150.0420.00416.13
8.3.140.0240.00316.20
8.3.130.0260.00716.32
8.3.120.0370.00316.33
8.3.110.0380.00616.14
8.3.100.0300.01716.40
8.3.90.0310.01016.29
8.3.80.0440.00616.37
8.3.70.0180.00816.24
8.3.60.0420.00016.47
8.3.50.0390.00616.29
8.3.40.0280.01317.54
8.3.30.0240.01517.25
8.3.20.0350.00417.35
8.3.10.0290.00617.45
8.3.00.0170.00417.42
8.2.270.0320.00616.50
8.2.260.0320.00616.32
8.2.250.0290.01316.28
8.2.240.0220.01816.53
8.2.230.0340.00916.43
8.2.220.0230.01416.29
8.2.210.0360.00016.58
8.2.200.0310.00716.45
8.2.190.0310.00816.37
8.2.180.0250.01216.38
8.2.170.0330.00917.62
8.2.160.0290.01117.48
8.2.150.0230.02017.21
8.2.140.0300.01317.24
8.2.130.0380.00317.18
8.2.120.0370.00617.51
8.2.110.0310.00817.23
8.2.100.0270.01217.52
8.2.90.0300.00417.62
8.2.80.0230.01317.40
8.2.70.0340.00517.15
8.2.60.0330.00517.43
8.2.50.0250.00617.50
8.2.40.0320.00317.50
8.2.30.0220.01417.22
8.2.20.0330.00417.51
8.2.10.0370.00017.50
8.2.00.0250.01117.24

preferences:
141.08 ms | 997 KiB | 7 Q