3v4l.org

run code in 500+ PHP versions simultaneously
<?php interface PaginatorInterface { } class Paginator implements PaginatorInterface { } class BookRepository { use CreatePaginatorTrait; protected function getPaginator(): Paginator { return new Paginator(); } } trait CreatePaginatorTrait { protected function getPaginator(): PaginatorInterface { return new Paginator(); } }

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.70.0090.00818.39
8.5.60.0050.00216.56
8.5.50.0030.00516.52
8.5.30.0100.00818.07
8.5.20.0110.00620.05
8.5.10.0120.00616.71
8.5.00.0130.00722.77
8.4.220.0110.01119.34
8.4.210.0090.00219.43
8.4.180.0100.01022.05
8.4.170.0120.01024.02
8.4.160.0140.00822.12
8.4.150.0090.00416.84
8.4.140.0110.01017.30
8.4.130.0110.00919.21
8.4.120.0400.00717.66
8.4.110.0420.00917.76
8.4.100.0260.00417.64
8.4.90.0300.00617.25
8.4.80.0360.01017.69
8.4.70.0400.01017.50
8.4.60.0420.00817.34
8.4.50.0420.00817.18
8.4.40.0500.01217.03
8.4.30.0410.00817.35
8.4.20.0460.00717.30
8.4.10.0500.00817.43
8.3.310.0100.00818.23
8.3.300.0100.00920.68
8.3.290.0110.00920.81
8.3.280.0060.00516.18
8.3.270.0130.00816.74
8.3.260.0140.00516.71
8.3.250.0190.00316.42
8.3.240.0140.00716.84
8.3.230.0240.00716.59
8.3.220.0180.00416.64
8.3.210.0280.00516.40
8.3.200.0370.01216.48
8.3.190.0410.00716.53
8.3.180.0300.00916.62
8.3.170.0360.00616.33
8.3.160.0220.00416.57
8.3.150.0190.00516.40
8.3.140.0210.00216.51
8.3.130.0170.00416.46
8.3.120.0180.00416.08
8.3.110.0270.00216.27
8.3.100.0310.00916.46
8.3.90.0430.00716.57
8.3.80.0240.00816.59
8.3.70.0190.00416.68
8.3.60.0190.00516.25
8.3.50.0190.00716.23
8.3.40.0360.00317.57
8.3.30.0320.00917.50
8.3.20.0370.00517.14
8.3.10.0330.00817.26
8.3.00.0450.00517.25
8.2.310.0070.01018.09
8.2.300.0120.00820.38
8.2.290.0350.00616.54
8.2.280.0340.01116.05
8.2.270.0200.00616.76
8.2.260.0330.00816.29
8.2.250.0290.00516.19
8.2.240.0190.00816.00
8.2.230.0340.00915.97
8.2.220.0350.00716.60
8.2.210.0260.01015.98
8.2.200.0340.00816.41
8.2.190.0380.00716.35
8.2.180.0330.01116.60
8.2.170.0360.01017.69
8.2.160.0360.00917.72
8.2.150.0390.00617.38
8.2.140.0390.00717.46
8.2.130.0380.00717.16
8.2.120.0360.00617.57
8.2.110.0320.00917.27
8.2.100.0340.01117.39
8.2.90.0340.01117.50
8.2.80.0380.00917.30
8.2.70.0340.01017.32
8.2.60.0340.00817.25
8.2.50.0270.00817.31
8.2.40.0150.00617.47
8.2.30.0290.00917.31
8.2.20.0350.01017.34
8.2.10.0220.00517.35
8.2.00.0390.00916.96
8.1.340.0090.00921.71

preferences:
63.99 ms | 856 KiB | 5 Q