3v4l.org

run code in 500+ PHP versions simultaneously
<?php class Foop { public $abc = false; function foo() { static $a = $this->abc; static $b = $this->bar(); static $c = $this?->bar($this?->abc); static $d = function($a) { return $a * 10; }; static $e = fn($a) => $a * 10; static $f = ltrim(...); } function bar() {} }

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.70.0100.00316.61
8.5.60.0100.00816.46
8.5.50.0030.00418.33
8.5.30.0110.00718.11
8.5.20.0120.00520.26
8.5.10.0100.00918.41
8.5.00.0140.00722.84
8.4.220.0070.00319.30
8.4.210.0050.00521.17
8.4.180.0090.01219.54
8.4.170.0130.00824.02
8.4.160.0110.01022.11
8.4.150.0100.00516.70
8.4.140.0360.01017.24
8.4.130.0360.00717.50
8.4.120.0370.00917.57
8.4.110.0420.01017.89
8.4.100.0380.00817.71
8.4.90.0380.00817.76
8.4.80.0380.00917.71
8.4.70.0420.00917.29
8.4.60.0450.00917.70
8.4.50.0340.01117.52
8.4.40.0370.01317.39
8.4.30.0380.01117.33
8.4.20.0420.00817.27
8.4.10.0380.01117.22
8.3.300.0070.01120.76
8.3.290.0160.00420.93
8.3.280.0100.01018.46
8.3.270.0420.00516.25
8.3.260.0380.00716.34
8.3.250.0390.00916.19
8.3.240.0330.01216.21
8.3.230.0340.01116.30
8.3.220.0390.00616.36
8.3.210.0310.01416.50
8.3.200.0340.01216.23
8.3.190.0360.01016.43
8.3.180.0340.01216.35
8.3.170.0370.01016.30
8.3.160.0400.00916.41
8.3.150.0370.01216.39
8.3.140.0430.01016.44
8.3.130.0310.01116.19
8.3.120.0380.00616.43
8.3.110.0380.00816.55
8.3.100.0380.00916.54
8.3.90.0370.01216.19
8.3.80.0390.00816.32
8.3.70.0340.01316.54
8.3.60.0390.00916.27
8.3.50.0370.01016.20
8.3.40.0370.01017.29
8.3.30.0280.01017.32
8.3.20.0290.00917.39
8.3.10.0280.01017.40
8.3.00.0320.00817.32
8.2.300.0090.01120.11
8.2.290.0290.01216.40
8.2.280.0270.01116.49
8.2.270.0300.01016.41
8.2.260.0330.00716.58
8.2.250.0300.00916.48
8.2.240.0300.01016.48
8.2.230.0330.00716.55
8.2.220.0310.01416.54
8.2.210.0300.01016.39
8.2.200.0310.01016.46
8.2.190.0330.00716.45
8.2.180.0360.00316.54
8.2.170.0350.00817.54
8.2.160.0350.00717.56
8.2.150.0370.00517.55
8.2.140.0420.00717.32
8.2.130.0350.00717.68
8.2.120.0350.00717.43
8.2.110.0320.01017.61
8.2.100.0360.00717.51
8.2.90.0300.01117.39
8.2.80.0330.00817.44
8.2.70.0360.00517.51
8.2.60.0320.00917.34
8.2.50.0410.00617.27
8.2.40.0390.00817.29
8.2.30.0280.01117.20
8.2.20.0260.01317.32
8.2.10.0320.00717.35
8.2.00.0350.00617.27
8.1.340.0130.00721.66

preferences:
54.98 ms | 853 KiB | 5 Q