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.0100.01022.52
8.4.110.0130.00818.03
8.4.100.0080.01217.64
8.4.90.0100.00920.72
8.4.80.0110.00720.47
8.4.70.0100.01118.88
8.4.60.0080.01220.72
8.4.50.0100.00920.51
8.4.40.0100.01017.91
8.4.30.0060.01320.64
8.4.20.0110.01121.25
8.4.10.0080.00019.65
8.3.250.0140.00616.51
8.3.240.0140.00516.50
8.3.230.0100.00816.41
8.3.220.0100.00718.84
8.3.210.0090.00916.56
8.3.200.0040.00516.81
8.3.190.0070.00317.01
8.3.180.0130.00719.00
8.3.170.0100.01017.15
8.3.160.0160.00620.64
8.3.150.0150.00417.18
8.3.140.0070.01116.62
8.3.130.0280.01416.38
8.3.120.0340.00716.36
8.3.110.0300.01116.48
8.3.100.0430.00416.60
8.3.90.0360.00716.21
8.3.80.0360.01316.21
8.3.70.0390.00816.18
8.3.60.0420.01316.27
8.3.50.0540.00016.18
8.3.40.0350.00617.68
8.3.30.0230.01317.70
8.3.20.0320.00917.34
8.3.10.0290.01117.26
8.3.00.0040.01717.59
8.2.290.0110.00816.63
8.2.280.0060.00218.28
8.2.270.0140.00416.63
8.2.260.0090.00917.05
8.2.250.0350.00316.29
8.2.240.0300.00916.41
8.2.230.0260.01316.18
8.2.220.0330.00616.46
8.2.210.0390.00016.36
8.2.200.0320.00616.43
8.2.190.0240.01216.42
8.2.180.0290.00316.77
8.2.170.0250.00817.40
8.2.160.0290.01317.50
8.2.150.0240.00017.36
8.2.140.0210.01017.32
8.2.130.0140.00317.20
8.2.120.0130.00417.21
8.2.110.0130.00617.53
8.2.100.0130.00517.50
8.2.90.0120.00617.43
8.2.80.0120.00617.57
8.2.70.0140.00517.52
8.2.60.0120.00417.09
8.2.50.0150.00318.80
8.2.40.0080.00817.16
8.2.30.0080.00817.29
8.2.20.0110.00517.10
8.2.10.0110.00517.32
8.2.00.0160.00016.92
8.1.330.0150.00516.02
8.1.320.0100.00915.94
8.1.310.0070.01116.60
8.1.300.0150.00416.18
8.1.290.0140.00016.18
8.1.280.0140.00316.18
8.1.270.0180.00016.75
8.1.260.0050.01017.23
8.1.250.0170.00017.03
8.1.240.0060.00617.29
8.1.230.0120.00216.95
8.1.220.0080.00416.59
8.1.210.0120.00616.47
8.1.200.0180.00016.46
8.1.190.0140.00017.07
8.1.180.0140.00017.05
8.1.170.0100.00716.79
8.1.160.0110.00416.80
8.1.150.0130.00316.63
8.1.140.0060.00616.82
8.1.130.0130.00017.05
8.1.120.0110.00317.04
8.1.110.0130.00316.82
8.1.100.0100.00416.99
8.1.90.0120.00416.56
8.1.80.0100.00317.10
8.1.70.0100.00316.61
8.1.60.0170.00016.65
8.1.50.0080.00816.68
8.1.40.0150.00017.08
8.1.30.0110.00417.18
8.1.20.0080.00817.08
8.1.10.0120.00317.01
8.1.00.0090.00516.99

preferences:
26.52 ms | 403 KiB | 5 Q