3v4l.org

run code in 500+ PHP versions simultaneously
<?php class W {} class X extends W {} $x = new X; $f = function () { return parent::class; }; print $f->call($x); //function foo(parent $p) { return $this; } ?>

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.80.0060.00216.73
8.5.70.0060.00218.39
8.5.60.0100.00416.58
8.5.50.0090.00816.77
8.5.30.0110.01018.05
8.5.20.0100.00620.15
8.5.10.0080.00916.70
8.5.00.0120.00922.98
8.4.230.0050.00521.36
8.4.220.0140.01119.43
8.4.210.0060.00519.48
8.4.180.0130.00919.66
8.4.170.0090.01223.93
8.4.160.0100.01322.14
8.4.150.0080.00316.83
8.4.140.0100.01117.48
8.4.130.0100.00819.27
8.4.120.0400.01117.60
8.4.110.0400.00917.79
8.4.100.0340.00917.56
8.4.90.0440.00717.53
8.4.80.0430.00917.64
8.4.70.0170.00417.92
8.4.60.0370.01117.71
8.4.50.0400.00717.57
8.4.40.0440.00817.30
8.4.30.0460.00817.34
8.4.20.0280.00717.38
8.4.10.0180.00617.31
8.3.320.0100.00918.43
8.3.310.0040.00518.28
8.3.300.0120.00820.79
8.3.290.0120.00920.79
8.3.280.0110.01018.28
8.3.270.0130.00616.30
8.3.260.0110.00816.54
8.3.250.0400.00616.75
8.3.240.0300.00616.31
8.3.230.0400.00716.66
8.3.220.0430.00516.46
8.3.210.0440.00516.55
8.3.200.0390.01016.39
8.3.190.0370.00816.49
8.3.180.0390.00716.58
8.3.170.0470.00716.41
8.3.160.0430.00716.50
8.3.150.0340.00416.34
8.3.140.0400.00916.52
8.3.130.0360.00716.64
8.3.120.0320.01216.31
8.3.110.0380.00816.37
8.3.100.0430.01016.58
8.3.90.0450.00416.41
8.3.80.0510.01016.32
8.3.70.0400.01116.23
8.3.60.0400.00816.65
8.3.50.0390.01116.30
8.3.40.0350.01117.38
8.3.30.0340.00717.44
8.3.20.0360.01117.31
8.3.10.0310.00917.39
8.3.00.0350.01017.28
8.2.310.0080.00818.12
8.2.300.0100.01020.25
8.2.290.0330.00716.81
8.2.280.0320.00716.58
8.2.270.0340.00816.77
8.2.260.0350.00616.69
8.2.250.0350.00716.66
8.2.240.0330.00816.71
8.2.230.0330.00916.47
8.2.220.0360.00516.47
8.2.210.0330.00916.59
8.2.200.0380.00516.07
8.2.190.0360.00816.31
8.2.180.0310.01016.30
8.2.170.0350.01117.49
8.2.160.0300.01017.52
8.2.150.0360.00917.38
8.2.140.0200.00817.59
8.2.130.0350.00817.39
8.2.120.0340.01017.70
8.2.110.0490.00817.51
8.2.100.0390.00517.51
8.2.90.0420.01217.39
8.2.80.0370.00717.31
8.2.70.0360.00817.59
8.2.60.0380.00717.41
8.2.50.0430.00817.49
8.2.40.0320.00917.45
8.2.30.0320.00417.60
8.2.20.0340.00717.47
8.2.10.0320.00917.30
8.2.00.0360.00517.22
8.1.340.0090.01221.70

preferences:
56.94 ms | 871 KiB | 5 Q