3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { private $name = 'john'; function say() { echo $this->name; } } class Foo2 extends Foo { private $name = 'lisa'; } Closure::fromCallable([new Foo2(), 'say'])->call(new Foo()); // good Closure::fromCallable([new Foo(), 'say'])->call(new Foo2()); // bad

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.0080.01021.35
8.5.20.0090.01020.07
8.5.10.0140.00316.69
8.5.00.0100.01119.95
8.4.180.0130.00519.80
8.4.170.0150.00723.74
8.4.160.0120.00923.85
8.4.150.0080.00416.95
8.4.140.0120.01017.57
8.4.130.0120.00718.91
8.4.120.0050.00324.43
8.4.110.0050.00420.52
8.4.100.0130.00618.86
8.4.90.0060.00220.56
8.4.80.0120.00818.35
8.4.70.0050.00419.02
8.4.60.0110.00718.64
8.4.50.0130.01018.66
8.4.40.0130.00619.37
8.4.30.0080.00818.82
8.4.20.0140.00719.64
8.4.10.0140.00719.55
8.3.300.0150.00620.84
8.3.290.0160.00418.47
8.3.280.0110.01018.24
8.3.270.0110.00816.61
8.3.260.0110.00916.82
8.3.250.0060.01418.80
8.3.240.0060.00317.08
8.3.230.0090.00716.86
8.3.220.0090.00618.82
8.3.210.0100.00816.57
8.3.200.0050.00316.46
8.3.190.0060.01216.96
8.3.180.0130.00718.88
8.3.170.0070.01416.39
8.3.160.0060.01316.76
8.3.150.0070.01018.92
8.3.140.0040.00418.79
8.3.130.0080.00018.69
8.3.120.0000.00920.61
8.3.110.0040.00420.94
8.3.100.0000.00716.69
8.3.90.0430.00426.77
8.3.80.0370.01226.77
8.3.70.0440.00326.77
8.3.60.0350.01426.77
8.3.50.0580.00326.77
8.3.40.0330.01126.77
8.3.30.0260.01126.77
8.3.20.0250.01626.77
8.3.10.0190.00826.77
8.3.00.0240.01726.77
8.2.300.0120.00918.12
8.2.290.0050.00320.31
8.2.280.0110.00618.56
8.2.270.0130.00618.99
8.2.260.0040.00416.67
8.2.250.0050.00316.70
8.2.240.0070.00717.17
8.2.230.0030.00622.58
8.2.220.0080.00024.06
8.2.210.0340.00326.77
8.2.200.0380.00626.77
8.2.190.0390.00326.77
8.2.180.0410.00426.77
8.2.170.0390.00626.77
8.2.160.0410.00526.77
8.2.150.0390.00326.77
8.2.140.0510.00026.77
8.2.130.0360.01026.77
8.2.120.0290.00626.77
8.2.110.0370.00726.77
8.2.100.0260.01626.77
8.2.90.0380.00326.77
8.2.80.0350.00626.77
8.2.70.0340.00726.77
8.2.60.0330.00726.77
8.2.50.0410.00026.77
8.2.40.0330.00726.77
8.2.30.0310.00926.77
8.2.20.0360.00326.77
8.2.10.0410.00326.77
8.2.00.0280.01426.77
8.1.340.0110.00917.82
8.1.330.0080.01221.89
8.1.320.0080.01218.02
8.1.310.0040.00416.67
8.1.300.0070.00020.16
8.1.290.0220.02226.77
8.1.280.0340.00626.77
8.1.270.0340.00926.77
8.1.260.0400.00426.77
8.1.250.0340.00326.77
8.1.240.0240.00926.77
8.1.230.0370.00926.77
8.1.220.0350.00326.77
8.1.210.0350.00326.77
8.1.200.0320.00426.77
8.1.190.0210.01126.77
8.1.180.0310.00726.77
8.1.170.0280.00326.77
8.1.160.0310.00326.77
8.1.150.0360.00426.77
8.1.140.0430.00726.77
8.1.130.0360.00326.77
8.1.120.0350.00626.77
8.1.110.0280.00626.77
8.1.100.0240.00626.77
8.1.90.0290.01126.77
8.1.80.0250.01326.77
8.1.70.0310.00826.77
8.1.60.0350.00726.77
8.1.50.0290.01126.77
8.1.40.0350.00626.77
8.1.30.0310.01026.77
8.1.20.0270.01026.77
8.1.10.0370.01426.77
8.1.00.0410.00426.77

preferences:
47.54 ms | 989 KiB | 5 Q