3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Model {} class PlayerModel extends Model {} abstract class Repository { abstract public function save(Model $model); } class PlayerRepository extends Repository { public function save(PlayerModel $model) { print get_class($model); } } $player = new PlayerModel(); $repository = new PlayerRepository(); $repository->save($player);

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.0.00.0100.01016.67
7.4.130.0200.00415.95
7.4.120.0120.00716.16
7.4.110.0120.01016.27
7.4.100.0140.00916.29
7.4.90.0100.01216.38
7.4.80.0120.01116.31
7.4.70.0120.00916.23
7.4.60.0150.00816.24
7.4.50.0130.00916.28
7.4.40.0130.00916.36
7.4.30.0120.01116.27
7.4.20.0120.01116.30
7.4.10.0090.01316.37
7.4.00.0090.01016.38
7.3.250.0070.01015.79
7.3.240.0070.01116.02
7.3.230.0140.00816.15
7.3.220.0130.01116.27
7.3.210.0130.00916.24
7.3.200.0120.01116.24
7.3.190.0130.00816.33
7.3.180.0130.01016.20
7.3.170.0130.00916.26
7.3.160.0170.00716.27
7.3.150.0140.00816.28
7.3.140.0120.01116.20
7.3.130.0140.00916.20
7.3.120.0130.00816.23
7.3.110.0120.00916.30
7.3.100.0140.00816.21
7.3.90.0120.01016.21
7.3.80.0150.00716.25
7.3.70.0100.01216.16
7.3.60.0100.01216.22
7.3.50.0170.00716.25
7.3.40.0100.01116.19
7.3.30.0110.01016.24
7.3.20.0150.00816.25
7.3.10.0140.01016.18
7.3.00.0140.01016.23
7.2.340.0150.00916.25
7.2.330.0120.01016.30
7.2.320.0130.00916.31
7.2.310.0150.00816.38
7.2.300.0120.01116.45
7.2.290.0140.01016.38
7.2.280.0130.01016.37
7.2.270.0120.01216.33
7.2.260.0130.00916.40
7.2.250.0170.00616.26
7.2.240.0140.00916.31
7.2.230.0140.00916.34
7.2.220.0120.01116.34
7.2.210.0140.00916.28
7.2.200.0140.00816.24
7.2.190.0140.01016.28
7.2.180.0100.01116.36
7.2.170.0120.01116.31
7.2.160.0120.01016.27
7.2.150.0230.00616.32
7.2.140.0250.00816.36
7.2.130.0150.00716.50
7.2.120.0140.00916.42
7.2.110.0130.00916.40
7.2.100.0120.00916.38
7.2.90.0140.00816.35
7.2.80.0130.01216.37
7.2.70.0110.01316.48
7.2.60.0180.00816.41
7.2.50.0140.01116.40
7.2.40.0140.00816.34
7.2.30.0110.01016.38
7.2.20.0130.00816.38
7.2.10.0110.01216.39
7.2.00.0110.01216.29

preferences:
137.85 ms | 1432 KiB | 7 Q