3v4l.org

run code in 500+ PHP versions simultaneously
<?php $object = new X(); $one = $object->foo(); // X::foo $two = new $object->foo(); // object Y {} class X { public $foo = Y::class; function foo() { return __METHOD__; } } class Y {} ?>

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.00516.53
8.5.50.0100.00616.65
8.5.30.0110.00817.93
8.5.20.0110.00720.16
8.5.10.0120.00616.70
8.5.00.0080.01321.36
8.4.210.0130.00521.33
8.4.180.0120.00921.96
8.4.170.0120.01020.44
8.4.160.0120.01020.70
8.4.150.0070.00516.79
8.4.140.0140.00617.56
8.4.130.0100.01017.69
8.4.120.0110.00824.38
8.4.110.0110.00922.34
8.4.100.0110.01018.63
8.4.90.0120.00920.61
8.4.80.0070.00319.18
8.4.70.0100.00920.69
8.4.60.0130.00720.37
8.4.50.0100.01120.28
8.4.40.0130.00717.52
8.4.30.0250.01018.03
8.4.20.0360.00917.35
8.4.10.0370.00717.28
8.3.300.0180.00420.75
8.3.290.0140.01120.72
8.3.280.0220.00818.03
8.3.270.0130.00616.36
8.3.260.0060.01116.72
8.3.250.0090.00918.87
8.3.240.0120.00516.64
8.3.230.0120.00816.40
8.3.220.0120.00618.73
8.3.210.0120.00718.29
8.3.200.0040.00416.46
8.3.190.0060.00417.03
8.3.180.0110.00718.68
8.3.170.0070.01417.39
8.3.160.0330.00716.42
8.3.150.0330.00816.47
8.3.140.0360.00816.40
8.3.130.0300.00816.36
8.3.120.0320.00816.43
8.3.110.0300.00816.43
8.3.100.0350.00716.39
8.3.90.0320.00716.33
8.3.80.0330.00616.33
8.3.70.0290.00716.23
8.3.60.0290.00916.42
8.3.50.0310.00816.48
8.3.40.0300.00517.27
8.3.30.0260.00717.30
8.3.20.0290.00817.20
8.3.10.0280.00917.18
8.3.00.0170.00817.65
8.2.300.0110.00820.42
8.2.290.0050.00320.52
8.2.280.0080.01118.03
8.2.270.0280.00816.49
8.2.260.0280.00916.38
8.2.250.0290.00816.50
8.2.240.0290.00816.39
8.2.230.0280.01116.36
8.2.220.0280.00916.46
8.2.210.0270.00916.43
8.2.200.0270.00916.46
8.2.190.0290.00816.38
8.2.180.0280.00716.46
8.2.170.0320.00817.46
8.2.160.0290.00817.46
8.2.150.0290.00817.37
8.2.140.0290.00817.32
8.2.130.0300.00717.24
8.2.120.0330.00617.33
8.2.110.0340.00717.34
8.2.100.0310.00617.35
8.2.90.0280.00917.42
8.2.80.0280.00717.32
8.2.70.0280.00717.20
8.2.60.0270.00617.23
8.2.50.0270.00617.30
8.2.40.0300.00417.31
8.2.30.0270.00817.32
8.2.20.0280.00717.25
8.2.10.0270.00617.31
8.2.00.0270.00717.25
8.1.340.0130.00920.26
8.1.320.0110.00817.95

preferences:
75.8 ms | 846 KiB | 5 Q