3v4l.org

run code in 500+ PHP versions simultaneously
<?php trait t { function as() { echo 'as'; } } class x { use t { as as as ;} } (new x)->as(); // prints as

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.0040.00516.57
8.5.70.0030.00416.65
8.5.60.0120.00616.82
8.5.50.0110.00716.71
8.5.30.0120.00617.96
8.5.20.0090.00820.06
8.5.10.0080.01016.18
8.5.00.0140.00919.93
8.4.230.0130.00619.63
8.4.220.0130.01019.60
8.4.210.0120.01021.27
8.4.180.0110.01120.63
8.4.170.0100.01123.88
8.4.160.0130.00823.87
8.4.150.0070.00416.90
8.4.140.0160.00517.53
8.4.130.0100.00320.42
8.4.120.0090.00724.10
8.4.110.0120.00818.03
8.4.100.0120.00817.61
8.4.90.0130.00720.27
8.4.80.0110.01117.57
8.4.70.0320.00617.23
8.4.60.0250.01017.18
8.4.50.0300.00617.39
8.4.40.0200.00617.29
8.4.30.0170.00517.57
8.4.20.0200.00417.48
8.4.10.0160.00717.62
8.3.320.0110.00418.18
8.3.310.0130.00318.22
8.3.300.0110.00920.81
8.3.290.0120.00820.75
8.3.280.0160.01118.25
8.3.270.0100.00916.55
8.3.260.0100.01016.61
8.3.250.0140.00618.88
8.3.240.0130.00616.96
8.3.230.0090.01016.42
8.3.220.0060.00217.22
8.3.210.0040.00416.20
8.3.200.0130.00516.47
8.3.190.0140.00616.20
8.3.180.0150.00416.20
8.3.170.0170.00416.30
8.3.160.0180.00416.39
8.3.150.0190.00316.66
8.3.140.0200.00216.32
8.3.130.0150.00416.20
8.3.120.0150.00516.41
8.3.110.0130.00416.31
8.3.100.0170.00416.20
8.3.90.0190.00216.43
8.3.80.0180.00216.41
8.3.70.0190.00316.29
8.3.60.0160.00616.37
8.3.50.0170.00416.29
8.3.40.0200.00317.42
8.3.30.0150.00417.17
8.3.20.0140.00517.18
8.3.10.0130.00517.30
8.3.00.0140.00517.35
8.2.320.0110.00917.95
8.2.310.0030.00617.99
8.2.300.0130.00618.75
8.2.290.0130.00520.24
8.2.280.0120.00416.43
8.2.270.0140.00416.26
8.2.260.0150.00216.20
8.2.250.0180.00116.48
8.2.240.0130.00416.20
8.2.230.0140.00516.20
8.2.220.0140.00416.46
8.2.210.0130.00416.20
8.2.200.0110.00716.55
8.2.190.0150.00216.25
8.2.180.0120.00616.33
8.2.170.0140.00517.44
8.2.160.0170.00317.77
8.2.150.0150.00417.23
8.2.140.0130.00517.25
8.2.130.0160.00417.38
8.2.120.0150.00417.34
8.2.110.0160.00217.19
8.2.100.0150.00317.44
8.2.90.0170.00217.39
8.2.80.0140.00517.15
8.2.70.0140.00417.32
8.2.60.0170.00117.56
8.2.50.0160.00416.93
8.2.40.0160.00416.96
8.2.30.0130.00617.35
8.2.20.0110.00517.30
8.2.10.0110.00617.47
8.2.00.0140.00317.39
8.1.340.0140.01021.60

preferences:
63.88 ms | 875 KiB | 5 Q