3v4l.org

run code in 300+ PHP versions simultaneously
<?php class DbRepository { public function save($object) { } } class ExtendedDbRepository extends DbRepository { public function save($object) { } } class Foo { /** @var DbRepository */ var $repository; public function __construct(DbRepository $repository) { $this->repository = $repository; } } $foo = new Foo(new ExtendedDbRepository());

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.3.60.0110.00718.56
8.3.50.0100.00316.61
8.3.40.0090.00618.65
8.3.30.0060.00918.62
8.3.20.0040.00420.29
8.3.10.0030.00621.73
8.3.00.0080.00020.93
8.2.180.0110.00418.30
8.2.170.0120.00322.96
8.2.160.0100.00322.08
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0040.00422.26
8.2.120.0000.00726.35
8.2.110.0090.00020.47
8.2.100.0040.00717.91
8.2.90.0000.00919.21
8.2.80.0090.00017.97
8.2.70.0050.00317.38
8.2.60.0060.00317.87
8.2.50.0000.00818.10
8.2.40.0030.00522.15
8.2.30.0030.00519.32
8.2.20.0020.00518.05
8.2.10.0040.00417.97
8.2.00.0000.00717.98
8.1.280.0110.00725.92
8.1.270.0070.00022.26
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0050.00522.18
8.1.230.0100.00019.17
8.1.220.0060.00317.74
8.1.210.0040.00418.77
8.1.200.0030.00617.23
8.1.190.0050.00317.23
8.1.180.0000.00818.10
8.1.170.0080.00018.39
8.1.160.0060.00318.97
8.1.150.0040.00418.86
8.1.140.0000.00819.50
8.1.130.0030.00518.83
8.1.120.0000.00717.41
8.1.110.0040.00417.39
8.1.100.0040.00417.43
8.1.90.0000.00817.35
8.1.80.0050.00217.43
8.1.70.0080.00017.29
8.1.60.0050.00317.60
8.1.50.0000.00817.55
8.1.40.0030.00717.52
8.1.30.0040.00417.52
8.1.20.0030.00517.69
8.1.10.0080.00017.53
8.1.00.0040.00417.46
8.0.300.0040.00418.77
8.0.290.0000.00816.75
8.0.280.0030.00318.37
8.0.270.0000.00717.07
8.0.260.0060.00016.81
8.0.250.0000.00717.02
8.0.240.0090.00016.85
8.0.230.0030.00516.91
8.0.220.0030.00316.78
8.0.210.0000.00716.94
8.0.200.0000.00616.84
8.0.190.0040.00416.96
8.0.180.0040.00416.89
8.0.170.0070.00016.91
8.0.160.0040.00416.89
8.0.150.0000.00716.89
8.0.140.0030.00716.90
8.0.130.0050.00313.30
8.0.120.0030.00516.87
8.0.110.0000.00716.95
8.0.100.0000.00716.83
8.0.90.0050.00216.85
8.0.80.0050.01116.89
8.0.70.0080.00016.78
8.0.60.0040.00416.85
8.0.50.0040.00417.00
8.0.30.0030.01417.02
8.0.20.0090.01117.40
8.0.10.0050.00216.85
8.0.00.0070.01016.77
7.4.330.0000.00515.55
7.4.320.0000.00716.49
7.4.300.0000.00716.65
7.4.290.0000.00716.50
7.4.280.0060.00316.43
7.4.270.0040.00416.52
7.4.260.0000.00716.48
7.4.250.0070.00016.61
7.4.240.0040.00416.69
7.4.230.0070.00016.53
7.4.220.0120.00716.47
7.4.210.0090.00616.63
7.4.200.0070.00016.34
7.4.160.0180.00516.61
7.4.150.0110.00917.40
7.4.140.0100.01017.86
7.4.130.0240.00016.51
7.4.120.0100.00816.47
7.4.110.0130.01016.46
7.4.100.0160.01016.50
7.4.90.0060.01216.61
7.4.80.0110.00619.39
7.4.70.0130.00716.44
7.4.60.0100.00716.59
7.4.50.0030.01016.46
7.4.40.0090.00616.45
7.4.30.0130.01016.22
7.4.00.0060.01015.00
7.3.330.0030.00313.19
7.3.320.0030.00313.06
7.3.310.0050.00216.19
7.3.300.0000.00616.25
7.3.290.0070.00816.28
7.3.280.0070.00916.23
7.3.270.0120.00617.40
7.3.260.0070.01216.34
7.3.250.0150.00316.35
7.3.240.0110.00616.38
7.3.230.0100.00716.14
7.3.210.0060.01016.27
7.3.200.0170.00016.14
7.3.190.0120.00916.40
7.3.180.0150.00516.32
7.3.170.0120.00316.29
7.3.160.0030.01416.24
7.3.120.0100.00714.63
7.3.110.0090.01014.51
7.3.100.0070.01114.84
7.3.90.0070.01014.59
7.3.80.0040.01114.57
7.3.70.0060.00314.68
7.3.60.0090.00614.69
7.3.50.0120.00014.29
7.3.40.0060.00314.80
7.3.30.0130.00614.69
7.3.20.0070.01016.19
7.3.10.0090.00616.48
7.3.00.0070.00316.57
7.2.330.0080.00816.72
7.2.320.0100.00716.60
7.2.310.0070.01016.42
7.2.300.0090.00616.48
7.2.290.0170.00016.78
7.2.250.0060.01214.65
7.2.240.0060.01515.13
7.2.230.0100.00615.18
7.2.220.0110.00715.28
7.2.210.0070.01114.82
7.2.200.0030.00615.05
7.2.190.0060.00915.23
7.2.180.0000.01614.97
7.2.170.0110.00014.85
7.2.160.0070.01114.95
7.2.150.0180.00016.78
7.2.140.0030.01516.99
7.2.130.0060.00916.99
7.2.120.0000.01016.83
7.2.110.0140.00416.79
7.2.100.0110.00816.48
7.2.90.0040.01416.97
7.2.80.0000.01816.71
7.2.70.0070.01116.94
7.2.60.0030.01216.52
7.2.50.0090.00916.62
7.2.40.0090.00916.50
7.2.30.0000.01016.81
7.2.20.0080.00616.57
7.2.10.0070.01016.81
7.2.00.0050.01018.24
7.1.330.0110.00415.71
7.1.320.0000.00815.67
7.1.310.0030.01015.60
7.1.300.0060.00915.88
7.1.290.0030.01015.41
7.1.280.0130.00015.64
7.1.270.0060.01115.60
7.1.260.0000.01315.82
7.1.250.0110.00415.79
7.1.200.0060.00915.46
7.1.100.0080.00317.74
7.1.70.0100.01017.00
7.1.60.0530.01333.36
7.1.50.0570.01333.00
7.1.40.0570.01032.48
7.1.30.0600.01032.59
7.1.20.0670.00732.55
7.1.10.0470.01014.59
7.1.00.0030.00714.62
7.0.200.0430.01014.90
7.0.190.0500.01014.99
7.0.180.0500.00714.20
7.0.170.0530.01014.12
7.0.160.0530.00714.48
7.0.150.0470.01314.48
7.0.140.0500.01014.21
7.0.130.0400.01014.89
7.0.120.0370.01014.84
7.0.110.0370.01014.38
7.0.100.0370.00714.43
7.0.90.0330.01014.31
7.0.80.0330.01014.52
7.0.70.0530.00314.32
7.0.60.0300.01314.26
7.0.50.0330.01014.20
7.0.40.1030.00714.49
7.0.30.0430.00014.59
7.0.20.0330.01014.53
7.0.10.0370.00714.44
7.0.00.0370.01014.49

preferences:
39.46 ms | 400 KiB | 5 Q