3v4l.org

run code in 500+ PHP versions simultaneously
<?php class x { private X $y; function __invoke() { echo __METHOD__;} function foo() { $this->y = new X; $this->y(); // better this way ($this->y)(); } } (new X)->foo();

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.60.0110.00617.17
8.5.50.0050.00216.56
8.5.30.0090.00818.05
8.5.20.0090.00720.14
8.5.10.0080.01016.79
8.5.00.0140.00720.05
8.4.210.0060.00519.70
8.4.180.0150.00919.80
8.4.170.0100.01120.31
8.4.160.0120.01020.55
8.4.150.0050.00716.95
8.4.140.0160.00517.80
8.4.130.0130.00718.10
8.4.120.0140.00324.30
8.4.110.0130.00718.77
8.4.100.0060.00318.02
8.4.90.0120.00820.38
8.4.80.0140.00518.81
8.4.70.0110.00918.91
8.4.60.0140.00818.77
8.4.50.0100.01020.51
8.4.40.0170.00317.92
8.4.30.0400.00017.16
8.4.20.0470.00017.27
8.4.10.0410.00617.78
8.3.300.0220.00819.43
8.3.290.0180.00820.73
8.3.280.0120.00818.38
8.3.270.0130.00716.57
8.3.260.0130.00617.09
8.3.250.0070.01219.13
8.3.240.0100.00816.64
8.3.230.0090.01016.63
8.3.220.0070.00218.84
8.3.210.0030.00516.57
8.3.200.0040.00516.68
8.3.190.0030.00517.17
8.3.180.0120.00618.98
8.3.170.0160.00317.23
8.3.160.0350.01016.23
8.3.150.0420.00316.44
8.3.140.0420.00416.73
8.3.130.0290.01116.47
8.3.120.0350.00416.53
8.3.110.0250.00916.51
8.3.100.0250.00616.16
8.3.90.0380.00816.29
8.3.80.0320.01316.21
8.3.70.0400.00416.43
8.3.60.0410.01016.75
8.3.50.0400.00616.50
8.3.40.0300.00917.66
8.3.30.0300.01017.45
8.3.20.0320.00617.09
8.3.10.0260.01317.33
8.3.00.0100.01317.46
8.2.300.0090.01020.37
8.2.290.0150.00420.35
8.2.280.0090.00918.41
8.2.270.0280.01016.64
8.2.260.0260.01316.38
8.2.250.0200.02016.56
8.2.240.0370.00616.46
8.2.230.0280.00916.63
8.2.220.0220.01716.71
8.2.210.0280.01016.64
8.2.200.0260.01316.55
8.2.190.0300.00916.76
8.2.180.0270.01116.59
8.2.170.0390.00917.40
8.2.160.0330.00617.72
8.2.150.0300.00917.49
8.2.140.0220.01317.59
8.2.130.0380.00917.43
8.2.120.0330.00717.64
8.2.110.0210.00417.47
8.2.100.0130.00417.24
8.2.90.0320.00717.57
8.2.80.0300.00917.43
8.2.70.0300.00917.29
8.2.60.0280.01617.34
8.2.50.0330.00617.33
8.2.40.0330.00417.38
8.2.30.0300.00617.51
8.2.20.0240.01217.45
8.2.10.0290.00717.40
8.2.00.0300.00717.46
8.1.340.0100.01120.42
8.1.320.0120.00916.32

preferences:
64.79 ms | 866 KiB | 5 Q