3v4l.org

run code in 300+ PHP versions simultaneously
<?php final class MyTerribleCode { public function demo(): void { $a = 1; (static function () { eval( <<<'PHP' var_dump(get_defined_vars()); var_dump(isset($this)); try { var_dump(self::class); } catch (Error) { var_dump(null); } PHP ); })->bindTo(null, null)(); } } (new MyTerribleCode())->demo();

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.20.0100.00721.56
8.4.10.0030.01619.68
8.3.160.0110.00718.90
8.3.150.0040.01418.79
8.3.140.0130.00316.70
8.3.130.0000.00918.40
8.3.120.0180.00717.84
8.3.110.0200.01117.04
8.3.100.0330.00934.19
8.3.90.0320.00934.23
8.3.80.0340.00834.23
8.3.70.0360.00634.21
8.3.60.0340.00634.21
8.3.50.0320.00634.19
8.3.40.0260.00734.34
8.3.30.0290.00934.37
8.3.20.0300.00634.35
8.3.10.0270.00634.35
8.3.00.0290.00634.35
8.2.270.0110.00716.65
8.2.260.0040.00416.84
8.2.250.0080.00016.82
8.2.240.0220.00517.12
8.2.230.0170.00918.23
8.2.220.0240.00734.22
8.2.210.0240.00634.22
8.2.200.0250.00734.18
8.2.190.0250.00734.20
8.2.180.0250.00734.22
8.2.170.0310.00534.41
8.2.160.0320.00734.38
8.2.150.0330.00834.38
8.2.140.0290.00834.34
8.2.130.0300.00734.36
8.2.120.0300.00934.38
8.2.110.0330.00834.36
8.2.100.0320.00734.37
8.2.90.0320.00634.36
8.2.80.0300.00734.38
8.2.70.0300.00734.35
8.2.60.0280.00734.36
8.2.50.0310.00734.34
8.2.40.0280.00834.36
8.2.30.0290.00834.35
8.2.20.0290.00734.36
8.2.10.0280.00734.36
8.2.00.0280.00834.36
8.1.310.0070.00718.13
8.1.300.0190.01016.86
8.1.290.0310.00834.12
8.1.280.0290.00834.13
8.1.270.0280.00534.32
8.1.260.0320.00734.30
8.1.250.0320.00634.35
8.1.240.0250.00734.31
8.1.230.0250.00734.32
8.1.220.0280.00534.31
8.1.210.0270.00734.33
8.1.200.0290.00634.31
8.1.190.0290.00634.30
8.1.180.0280.00634.33
8.1.170.0290.00734.33
8.1.160.0280.00734.32
8.1.150.0280.00934.30
8.1.140.0310.00634.32
8.1.130.0280.00834.31
8.1.120.0280.00734.33
8.1.110.0280.00634.29
8.1.100.0280.00834.32
8.1.90.0280.00734.31
8.1.80.0250.00834.33
8.1.70.0260.00634.33
8.1.60.0300.00834.34
8.1.50.0300.00734.34
8.1.40.0300.00734.33
8.1.30.0310.00834.34
8.1.20.0300.00634.35
8.1.10.0330.00634.33
8.1.00.0350.00534.35

preferences:
32.35 ms | 403 KiB | 5 Q