3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a { function __invoke() { echo("Invoked\n"); } } class b { private a $a; function doStuff() { $this->a = new a(); $this->a(); } } $b = new b(); $b->doStuff();

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.4.120.0060.00325.91
8.4.110.0100.00622.57
8.4.100.0150.00819.02
8.4.90.0180.00618.63
8.4.80.0110.00820.46
8.4.70.0120.00718.14
8.4.60.0080.00318.92
8.4.50.0100.01122.25
8.4.40.0100.01017.91
8.4.30.0110.00820.48
8.4.20.0140.00421.35
8.4.10.0030.00619.66
8.3.250.0130.00618.77
8.3.240.0060.00317.30
8.3.230.0120.00816.62
8.3.220.0100.00818.86
8.3.210.0110.00718.51
8.3.200.0040.00516.59
8.3.190.0130.00816.93
8.3.180.0090.00919.03
8.3.170.0100.01017.33
8.3.160.0110.00320.69
8.3.150.0160.00617.17
8.3.140.0040.01116.82
8.3.130.0310.01216.61
8.3.120.0330.00916.36
8.3.110.0350.00716.68
8.3.100.0370.00716.63
8.3.90.0200.00316.71
8.3.80.0240.00016.39
8.3.70.0210.00016.36
8.3.60.0340.00716.74
8.3.50.0320.00416.40
8.3.40.0270.00317.22
8.3.30.0240.01517.46
8.3.20.0350.00017.36
8.3.10.0260.01117.35
8.3.00.0150.00517.52
8.2.290.0100.00820.32
8.2.280.0100.00818.57
8.2.270.0150.00317.07
8.2.260.0110.00416.99
8.2.250.0280.00716.40
8.2.240.0290.01016.22
8.2.230.0350.00616.63
8.2.220.0330.00416.52
8.2.210.0270.00816.37
8.2.200.0280.01116.71
8.2.190.0320.00716.58
8.2.180.0260.01316.38
8.2.170.0340.00717.67
8.2.160.0280.01417.68
8.2.150.0260.01317.56
8.2.140.0390.00717.51
8.2.130.0360.01017.23
8.2.120.0440.00717.41
8.2.110.0420.00417.55
8.2.100.0320.00817.58
8.2.90.0350.00617.68
8.2.80.0270.01317.36
8.2.70.0400.00017.15
8.2.60.0340.00617.34
8.2.50.0360.00417.63
8.2.40.0340.00417.46
8.2.30.0260.01017.54
8.2.20.0310.00617.26
8.2.10.0250.00717.44
8.2.00.0340.00917.21
8.1.330.0100.00921.83
8.1.320.0130.00616.09
8.1.310.0000.00816.88
8.1.300.0420.00016.18
8.1.290.0380.00316.24
8.1.280.0290.01116.18
8.1.270.0420.00017.05
8.1.260.0320.00317.21
8.1.250.0360.01217.00
8.1.240.0290.00916.99
8.1.230.0320.00716.98
8.1.220.0270.00917.01
8.1.210.0250.01117.07
8.1.200.0330.00317.32
8.1.190.0230.00317.29
8.1.180.0110.00517.05
8.1.170.0230.00417.09
8.1.160.0300.01216.95
8.1.150.0220.01617.23
8.1.140.0300.00717.17
8.1.130.0300.00516.99
8.1.120.0270.00917.36
8.1.110.0260.00717.16
8.1.100.0320.00916.97
8.1.90.0220.00717.17
8.1.80.0230.01017.05
8.1.70.0320.00417.02
8.1.60.0290.01017.08
8.1.50.0360.00317.33
8.1.40.0260.01017.43
8.1.30.0350.00017.46
8.1.20.0370.00317.08
8.1.10.0540.00617.33
8.1.00.0340.01416.77

preferences:
38.11 ms | 403 KiB | 5 Q