3v4l.org

run code in 500+ PHP versions simultaneously
<?php interface I { function foo(int $i); } class X implements I { function foo(int $x) { echo $x; } } (new X)->foo(x: 1); (new X)->foo(i: 1); ?>

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.0080.00916.70
8.5.70.0040.00416.96
8.5.60.0110.00816.87
8.5.50.0060.00216.88
8.5.30.0080.00919.57
8.5.20.0110.00720.18
8.5.10.0050.01316.66
8.5.00.0160.00619.96
8.4.230.0130.00819.61
8.4.220.0120.00519.54
8.4.210.0120.00819.66
8.4.180.0160.00521.80
8.4.170.0120.01023.86
8.4.160.0160.00923.93
8.4.150.0130.00316.81
8.4.140.0180.00417.96
8.4.130.0120.00817.95
8.4.120.0050.00620.86
8.4.110.0100.00922.49
8.4.100.0160.00517.59
8.4.90.0140.00620.46
8.4.80.0090.01018.51
8.4.70.0070.01218.88
8.4.60.0110.00918.79
8.4.50.0100.00918.66
8.4.40.0100.00017.71
8.4.30.0370.01017.24
8.4.20.0370.01217.38
8.4.10.0400.00817.50
8.3.320.0090.00818.55
8.3.310.0080.00318.47
8.3.300.0110.00920.76
8.3.290.0140.00618.41
8.3.280.0120.00818.48
8.3.270.0080.01116.91
8.3.260.0110.00816.96
8.3.250.0030.00519.02
8.3.240.0110.00816.63
8.3.230.0120.00716.82
8.3.220.0120.00819.08
8.3.210.0120.00816.84
8.3.200.0060.00416.77
8.3.190.0080.00716.98
8.3.180.0110.00818.74
8.3.170.0110.00716.89
8.3.160.0300.01516.32
8.3.150.0330.01116.45
8.3.140.0410.00316.51
8.3.130.0300.01316.35
8.3.120.0240.01716.47
8.3.110.0400.00016.52
8.3.100.0410.01316.51
8.3.90.0380.00716.75
8.3.80.0330.01116.50
8.3.70.0340.01016.87
8.3.60.0380.00716.81
8.3.50.0350.01116.49
8.3.40.0250.01617.09
8.3.30.0260.00917.68
8.3.20.0240.01117.59
8.3.10.0210.01517.42
8.3.00.0110.01117.60
8.2.320.0110.00818.14
8.2.310.0120.00718.19
8.2.300.0110.00918.21
8.2.290.0070.00320.11
8.2.280.0080.01320.45
8.2.270.0320.00316.79
8.2.260.0310.00716.74
8.2.250.0280.01116.64
8.2.240.0240.01016.55
8.2.230.0140.01016.54
8.2.220.0290.00716.27
8.2.210.0210.01816.44
8.2.200.0360.00616.43
8.2.190.0360.00716.55
8.2.180.0310.00316.15
8.2.170.0240.00617.59
8.2.160.0260.00617.65
8.2.150.0240.00317.41
8.2.140.0170.00317.09
8.2.130.0220.00017.21
8.2.120.0120.00817.57
8.2.110.0130.00617.27
8.2.100.0120.00817.34
8.2.90.0160.00517.42
8.2.80.0110.00917.57
8.2.70.0170.00617.25
8.2.60.0210.00317.31
8.2.50.0210.00617.39
8.2.40.0090.00917.32
8.2.30.0150.00317.58
8.2.20.0180.00417.09
8.2.10.0170.00017.56
8.2.00.0120.00617.45
8.1.340.0140.00717.70
8.1.320.0100.00817.94

preferences:
65.27 ms | 896 KiB | 5 Q