3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a { function foo() { echo __CLASS__; // a print get_class($this); // a or b } } class b extends a {} (new b)->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.30.0070.01018.11
8.5.20.0110.00720.26
8.5.10.0070.00216.66
8.5.00.0130.01019.93
8.4.180.0110.01119.71
8.4.170.0120.00923.65
8.4.160.0130.00923.73
8.4.150.0080.00416.90
8.4.140.0180.01317.36
8.4.130.0130.00717.73
8.4.120.0120.00820.66
8.4.110.0120.00722.53
8.4.100.0150.00617.73
8.4.90.0110.01018.54
8.4.80.0140.00617.64
8.4.70.0110.00717.62
8.4.60.0220.00617.31
8.4.50.0160.00817.79
8.4.40.0190.00517.38
8.4.30.0150.00417.50
8.4.20.0200.00117.54
8.4.10.0190.00417.16
8.3.300.0070.01420.77
8.3.290.0100.01020.68
8.3.280.0140.00619.95
8.3.270.0070.01116.32
8.3.260.0150.00516.29
8.3.250.0060.00218.96
8.3.240.0130.00716.33
8.3.230.0070.00916.50
8.3.220.0090.01017.04
8.3.210.0140.00416.29
8.3.200.0110.00816.39
8.3.190.0140.00516.25
8.3.180.0200.00516.42
8.3.170.0140.00616.37
8.3.160.0170.00416.31
8.3.150.0190.00516.37
8.3.140.0160.00516.68
8.3.130.0170.00216.20
8.3.120.0130.00516.39
8.3.110.0140.00316.66
8.3.100.0140.00716.47
8.3.90.0150.00516.20
8.3.80.0150.00516.24
8.3.70.0150.00416.31
8.3.60.0170.00416.45
8.3.50.0160.00316.20
8.3.40.0190.00317.33
8.3.30.0110.00617.43
8.3.20.0120.00517.40
8.3.10.0130.00617.10
8.3.00.0160.00317.32
8.2.300.0140.00918.49
8.2.290.0110.01020.38
8.2.280.0130.00316.20
8.2.270.0120.00616.33
8.2.260.0120.00516.20
8.2.250.0160.00316.70
8.2.240.0130.00416.41
8.2.230.0170.00116.47
8.2.220.0120.00616.55
8.2.210.0140.00216.29
8.2.200.0150.00416.38
8.2.190.0140.00316.36
8.2.180.0150.00216.64
8.2.170.0140.00417.20
8.2.160.0140.00617.66
8.2.150.0140.00417.02
8.2.140.0140.00617.41
8.2.130.0140.00417.38
8.2.120.0180.00217.27
8.2.110.0140.00317.33
8.2.100.0230.00517.44
8.2.90.0140.00717.35
8.2.80.0220.00517.26
8.2.70.0220.00917.36
8.2.60.0160.00117.29
8.2.50.0130.00417.13
8.2.40.0190.00417.34
8.2.30.0170.00617.55
8.2.20.0110.00617.39
8.2.10.0130.00417.13
8.2.00.0150.00517.20
8.1.340.0100.00921.60

preferences:
48.97 ms | 837 KiB | 5 Q