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.5.10.0090.00916.71
8.5.00.0110.01121.66
8.4.160.0140.00821.56
8.4.150.0030.00014.05
8.4.140.0160.00717.66
8.4.130.0100.00520.52
8.4.120.0150.00419.60
8.4.110.0100.01125.85
8.4.100.0160.00418.84
8.4.90.0140.00920.55
8.4.80.0080.01217.96
8.4.70.0060.00618.04
8.4.60.0110.00917.70
8.4.50.0090.00718.18
8.4.40.0080.01117.79
8.4.30.0120.00620.81
8.4.20.0100.00721.56
8.4.10.0030.01619.68
8.3.280.0120.00818.43
8.3.270.0150.00416.73
8.3.260.0060.00316.69
8.3.250.0130.00716.78
8.3.240.0100.00616.78
8.3.230.0110.00716.63
8.3.220.0090.00919.05
8.3.210.0100.00916.63
8.3.200.0120.00916.57
8.3.190.0060.00216.59
8.3.180.0120.00717.08
8.3.170.0090.00918.97
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.290.0120.00716.93
8.2.280.0050.00418.40
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.330.0090.01016.39
8.1.320.0140.00716.21
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:
37.34 ms | 403 KiB | 5 Q