3v4l.org

run code in 500+ PHP versions simultaneously
<?php class A { function foo(array $a = NULL) {} } class B extends A { function foo(?array $a = NULL) {} } class C extends B { function foo(array $a = NULL) {} }

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.90.0080.01016.69
8.5.80.0110.00616.82
8.5.70.0090.00716.80
8.5.60.0100.00716.83
8.5.50.0090.00816.64
8.5.30.0100.00817.78
8.5.20.0100.00419.78
8.5.10.0100.00816.63
8.5.00.0200.01019.89
8.4.240.0100.01019.48
8.4.230.0120.00819.39
8.4.220.0080.00919.49
8.4.210.0130.01019.27
8.4.180.0140.00819.47
8.4.170.0110.01220.32
8.4.160.0110.01220.37
8.4.150.0090.00416.82
8.4.140.0130.00817.62
8.4.130.0050.00417.95
8.4.120.0110.00524.04
8.4.110.0090.00621.59
8.4.100.0040.00618.88
8.4.90.0020.00720.61
8.4.80.0130.00718.75
8.4.70.0040.00418.16
8.4.60.0070.01118.66
8.4.50.0100.01018.50
8.4.40.0150.00617.77
8.4.30.0110.00718.73
8.4.20.0240.00419.27
8.4.10.0190.00017.46
8.3.330.0140.00918.11
8.3.320.0100.00718.30
8.3.310.0030.00618.22
8.3.300.0120.00820.77
8.3.290.0120.00920.70
8.3.280.0090.01018.24
8.3.270.0110.01016.31
8.3.260.0080.00816.97
8.3.250.0110.00818.92
8.3.240.0140.00417.09
8.3.230.0100.00616.54
8.3.220.0100.00818.75
8.3.210.0040.00318.17
8.3.200.0060.00316.59
8.3.190.0090.00617.25
8.3.180.0060.00417.21
8.3.170.0060.01216.90
8.3.160.0040.00816.49
8.3.150.0070.00317.12
8.3.140.0150.00716.66
8.3.130.0170.00316.23
8.3.120.0180.00016.09
8.3.110.0120.00616.47
8.3.100.0170.00316.59
8.3.90.0140.00716.02
8.3.80.0210.00016.22
8.3.70.0170.00316.41
8.3.60.0180.00316.30
8.3.50.0170.00316.17
8.3.40.0200.00017.22
8.3.30.0130.00317.04
8.3.20.0150.00317.08
8.3.10.0160.00017.16
8.3.00.0050.00517.22
8.2.320.0110.00817.89
8.2.310.0100.00917.89
8.2.300.0120.00820.20
8.2.290.0020.00620.27
8.2.280.0080.01218.38
8.2.270.0170.00016.31
8.2.260.0110.00616.11
8.2.250.0140.00216.29
8.2.240.0080.00816.20
8.2.230.0150.00316.36
8.2.220.0140.00316.15
8.2.210.0120.00616.23
8.2.200.0170.00016.48
8.2.190.0140.00316.34
8.2.180.0170.00016.22
8.2.170.0140.00517.64
8.2.160.0170.00617.07
8.2.150.0210.00317.20
8.2.140.0210.01117.14
8.2.130.0140.00617.38
8.2.120.0150.00517.39
8.2.110.0120.00517.13
8.2.100.0120.00617.46
8.2.90.0160.00317.34
8.2.80.0150.00317.08
8.2.70.0170.00017.10
8.2.60.0120.00617.34
8.2.50.0150.00417.23
8.2.40.0260.00016.91
8.2.30.0140.00717.13
8.2.20.0170.00017.03
8.2.10.0160.00016.86
8.2.00.0130.00317.30
8.1.340.0060.00420.05
8.1.320.0130.00716.11

preferences:
83.41 ms | 891 KiB | 5 Q