3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Container {} interface RuleSetInterface {} class RuleSet implements RuleSetInterface {} class Foo { public function __construct(Container $app, RuleSetInterface $rules) { $this->app = $app; var_dump(is_null($rules)); var_dump($rules instanceof RuleSetInterface); exit(); $this->rules = $rules; } } $foo = new Foo(new Container());

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.0090.00916.75
8.3.50.0220.00721.07
8.3.40.0070.00718.82
8.3.30.0110.00418.83
8.3.20.0040.00420.39
8.3.10.0070.00021.90
8.3.00.0040.00423.67
8.2.180.0040.01116.75
8.2.170.0110.00422.96
8.2.160.0070.00720.36
8.2.150.0080.00024.18
8.2.140.0000.00724.66
8.2.130.0000.00819.64
8.2.120.0070.00026.35
8.2.110.0040.00721.07
8.2.100.0090.00317.93
8.2.90.0000.00819.05
8.2.80.0000.00817.97
8.2.70.0060.00317.63
8.2.60.0040.00417.93
8.2.50.0040.00418.07
8.2.40.0040.00422.17
8.2.30.0050.00319.43
8.2.20.0000.00817.74
8.2.10.0000.00819.75
8.2.00.0000.00818.02
8.1.280.0120.00925.92
8.1.270.0120.00623.84
8.1.260.0040.00428.09
8.1.250.0000.00728.09
8.1.240.0090.00022.59
8.1.230.0060.00619.01
8.1.220.0030.00617.79
8.1.210.0050.00318.77
8.1.200.0000.01017.13
8.1.190.0040.00417.10
8.1.180.0040.00418.10
8.1.170.0060.00318.53
8.1.160.0000.00820.68
8.1.150.0040.00418.71
8.1.140.0060.00319.63
8.1.130.0030.00317.56
8.1.120.0000.00717.43
8.1.110.0050.00517.40
8.1.100.0000.00717.43
8.1.90.0080.00317.45
8.1.80.0000.00817.46
8.1.70.0040.00417.29
8.1.60.0030.00517.54
8.1.50.0060.00317.38
8.1.40.0030.00617.52
8.1.30.0040.00417.54
8.1.20.0080.00017.53
8.1.10.0030.00517.46
8.1.00.0020.00517.48
8.0.300.0000.00718.77
8.0.290.0040.00416.88
8.0.280.0070.00018.50
8.0.270.0030.00317.38
8.0.260.0040.00417.25
8.0.250.0000.00617.00
8.0.240.0030.00317.02
8.0.230.0000.00717.00
8.0.220.0000.00717.00
8.0.210.0070.00016.96
8.0.200.0050.00316.93
8.0.190.0000.00817.03
8.0.180.0070.00017.00
8.0.170.0040.00416.82
8.0.160.0050.00216.81
8.0.150.0030.00516.79
8.0.140.0000.00716.79
8.0.130.0020.00413.39
8.0.120.0030.00516.91
8.0.110.0030.00516.94
8.0.100.0000.00717.00
8.0.90.0040.00416.96
8.0.80.0100.00717.00
8.0.70.0050.00217.01
8.0.60.0080.00017.08
8.0.50.0040.00416.93
8.0.30.0110.00717.09
8.0.20.0120.00717.40
8.0.10.0030.00516.84
8.0.00.0110.00716.87
7.4.330.0050.00016.89
7.4.320.0000.00616.59
7.4.300.0000.00816.39
7.4.290.0030.00316.46
7.4.280.0050.00316.53
7.4.270.0030.00316.42
7.4.260.0000.00716.45
7.4.250.0000.00816.51
7.4.240.0040.00416.49
7.4.230.0000.00716.25
7.4.220.0170.00316.50
7.4.210.0020.01216.51
7.4.200.0000.00716.45
7.4.160.0150.00016.34
7.4.150.0130.00817.40
7.4.140.0150.01417.86
7.4.130.0110.00916.47
7.4.120.0110.00616.57
7.4.110.0100.00716.54
7.4.100.0070.01016.43
7.4.90.0150.00416.31
7.4.80.0150.00619.39
7.4.70.0100.00616.38
7.4.60.0140.00416.73
7.4.50.0060.00916.58
7.4.40.0090.00916.64
7.4.30.0140.00416.44
7.4.00.0030.01415.09
7.3.330.0000.00613.39
7.3.320.0000.00613.32
7.3.310.0000.00716.26
7.3.300.0030.00316.28
7.3.290.0000.00716.32
7.3.280.0070.01116.37
7.3.270.0100.00717.40
7.3.260.0100.00716.37
7.3.250.0080.00916.36
7.3.240.0090.00916.46
7.3.230.0060.01316.46
7.3.210.0180.00016.37
7.3.200.0070.01119.39
7.3.190.0030.01316.49
7.3.180.0140.00316.48
7.3.170.0100.01016.40
7.3.160.0060.00916.59
7.2.330.0060.01116.32
7.2.320.0190.00016.55
7.2.310.0100.00616.61
7.2.300.0060.01316.73
7.2.290.0070.01016.44
7.2.60.0090.00616.86
7.2.00.0030.00919.28
7.1.200.0060.00715.65
7.1.100.0100.01017.94
7.1.70.0040.00417.13
7.1.60.0100.01019.30
7.1.50.0120.00916.86
7.1.00.0030.07722.57
7.0.200.0040.00416.45
7.0.60.0270.07721.77
7.0.50.0070.06017.86
7.0.40.0100.08320.28
7.0.30.0300.07320.23
7.0.20.0330.07020.07
7.0.10.0170.07020.16
7.0.00.0030.04320.20
5.6.280.0000.06021.08
5.6.210.0030.04020.61
5.6.200.0130.03318.19
5.6.190.0030.05020.54
5.6.180.0400.07020.55
5.6.170.0100.04720.54
5.6.160.0030.08720.54
5.6.150.0030.05018.30
5.6.140.0000.04718.23
5.6.130.0100.04718.18
5.6.120.0100.04321.02
5.6.110.0030.08320.96
5.6.100.0000.09021.14
5.6.90.0100.07721.01
5.6.80.0000.08320.38
5.5.350.0130.06020.43
5.5.340.0130.07318.09
5.5.330.0030.04020.13
5.5.320.0600.07020.51
5.5.310.0270.05720.32
5.5.300.0030.04018.07
5.5.290.0070.07717.99
5.5.280.0170.08020.80
5.5.270.0130.07720.77
5.5.260.0100.08020.89
5.5.250.0130.08020.59
5.5.240.0230.07320.17

preferences:
73.93 ms | 401 KiB | 5 Q