3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface ParentInterface {} interface ChildInterface extends ParentInterface {} interface OriginalHandlerInterface { public function handle(ParentInterface $a): string; } interface AnotherHandlerInterface { public function handle(ChildInterface $a): string; } class RegularImplementor implements AnotherHandlerInterface { public function handle(ChildInterface $a): string { return class_name($a); } } class ContravariantImplementor implements AnotherHandlerInterface { public function handle(ParentInterface $a): string { return class_name($a); } } class OriginalImplementor implements OriginalHandlerInterface { public function handle(ParentInterface $a) : string { return class_name($a); } } // this will error out class WrongOriginalImplementor implements OriginalHandlerInterface { public function handle(ChildInterface $a) : string { return class_name($a); } }

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.01118.23
8.3.50.0180.00416.30
8.3.40.0110.01118.67
8.3.30.0100.00820.82
8.3.20.0070.00722.20
8.3.10.0080.00723.63
8.3.00.0110.00420.88
8.2.180.0130.00718.29
8.2.170.0090.00622.96
8.2.160.0100.00821.74
8.2.150.0110.00523.57
8.2.140.0090.00523.81
8.2.130.0080.00624.56
8.2.120.0130.00222.01
8.2.110.0050.01021.98
8.2.100.0110.00420.37
8.2.90.0080.00420.34
8.2.80.0060.00720.47
8.2.70.0070.00720.29
8.2.60.0090.00420.44
8.2.50.0070.00820.52
8.2.40.0050.00820.53
8.2.30.0050.00820.51
8.2.20.0080.00520.50
8.2.10.0080.00721.12
8.2.00.0100.00621.02
8.1.280.0170.00325.92
8.1.270.0150.00522.78
8.1.260.0050.00724.66
8.1.250.0090.00325.53
8.1.240.0080.00522.67
8.1.230.0080.00721.93
8.1.220.0040.00720.35
8.1.210.0030.00920.95
8.1.200.0120.00220.16
8.1.190.0050.00720.10
8.1.180.0060.00520.53
8.1.170.0030.00920.76
8.1.160.0090.00520.92
8.1.150.0060.00620.85
8.1.140.0080.00520.84
8.1.130.0050.00520.21
8.1.120.0080.00320.21
8.1.110.0060.00520.18
8.1.100.0090.00320.14
8.1.90.0000.01120.13
8.1.80.0070.00420.18
8.1.70.0070.00420.16
8.1.60.0090.00320.26
8.1.50.0070.00420.22
8.1.40.0080.00420.23
8.1.30.0040.01020.29
8.1.20.0110.00320.21
8.1.10.0070.00520.20
8.1.00.0090.00520.15
8.0.300.0110.00021.47
8.0.290.0130.00619.86
8.0.280.0130.00320.70
8.0.270.0060.00520.46
8.0.260.0090.00519.89
8.0.250.0080.00719.98
8.0.240.0150.00019.98
8.0.230.0090.00519.95
8.0.220.0080.00519.94
8.0.210.0090.00719.92
8.0.200.0090.00719.98
8.0.190.0170.00319.96
8.0.180.0140.00219.88
8.0.170.0100.00919.89
8.0.160.0090.00219.90
8.0.150.0110.00819.85
8.0.140.0140.00619.88
8.0.130.0140.00318.17
8.0.120.0140.00619.95
8.0.110.0120.00419.85
8.0.100.0090.00719.86
8.0.90.0120.00919.94
8.0.80.0170.00819.93
8.0.70.0070.00419.91
8.0.60.0130.00219.96
8.0.50.0140.00719.96
8.0.30.0080.01320.10
8.0.20.0110.00719.04
8.0.10.0100.00619.90
8.0.00.0140.01119.77
7.4.330.0160.00619.84
7.4.320.0150.00619.71
7.4.300.0130.00819.70
7.4.290.0150.00419.70
7.4.280.0100.01019.68
7.4.270.0140.00619.73
7.4.260.0130.00418.08
7.4.250.0110.00719.72
7.4.240.0150.00018.64
7.4.230.0120.00619.80
7.4.220.0130.00518.59
7.4.210.0190.01019.68
7.4.200.0150.00319.64
7.4.190.0290.00922.96
7.4.180.0280.01122.96
7.4.160.0260.00422.96
7.4.150.0250.00322.96
7.4.140.0350.00022.96
7.4.130.0140.00618.55
7.4.120.0230.00819.71
7.4.110.0160.01219.65
7.4.100.0230.00619.73
7.4.90.0180.00519.78
7.4.80.0140.01021.18
7.4.70.0150.00819.66
7.4.60.0170.00719.71
7.4.50.0090.01319.62
7.4.40.0130.00919.72
7.4.30.0230.00822.96
7.4.20.0240.00219.65
7.4.10.0190.00619.69
7.4.00.0140.01319.82
7.3.330.0120.00519.68
7.3.320.0130.00318.04
7.3.310.0110.00619.63
7.3.300.0090.00719.62
7.3.290.0080.01117.93
7.3.280.0170.00619.60
7.3.270.0200.00722.96
7.3.260.0200.00619.61
7.3.250.0260.00022.96
7.3.240.0130.00617.72
7.3.230.0170.00519.59
7.3.220.0250.00722.96
7.3.210.0200.00719.59
7.3.200.0180.00719.77
7.3.190.0120.01019.70
7.3.180.0150.00619.68
7.3.170.0150.01019.74
7.3.160.0130.00819.62
7.3.150.0280.00022.96
7.3.140.0160.00519.68
7.3.130.0180.00419.71
7.3.120.0150.00719.63
7.3.110.0140.00919.56
7.3.100.0140.01019.63
7.3.90.0160.00819.66
7.3.80.0140.00919.69
7.3.70.0140.00719.60
7.3.60.0150.00819.68
7.3.50.0180.00719.62
7.3.40.0140.01119.60
7.3.30.0150.01219.62
7.3.20.0210.00819.61
7.3.10.0170.00719.62
7.3.00.0170.01119.63
7.2.340.0290.01022.96
7.2.330.0250.00719.68
7.2.320.0170.00819.65
7.2.310.0100.01119.81
7.2.300.0170.00819.77
7.2.290.0190.00319.72
7.2.280.0250.00322.96
7.2.270.0190.01019.59
7.2.260.0160.00519.66
7.2.250.0170.00819.56
7.2.240.0170.00819.77
7.2.230.0180.01319.70
7.2.220.0190.00819.63
7.2.210.0150.00619.69
7.2.200.0220.00519.63
7.2.190.0150.00819.69
7.2.180.0230.00819.73
7.2.170.0190.00719.73
7.2.160.0140.01119.72
7.2.150.0190.00819.64
7.2.140.0170.01119.75
7.2.130.0180.00719.62
7.2.120.0210.00719.68
7.2.110.0170.01419.77
7.2.100.0110.00619.73
7.2.90.0220.00219.71
7.2.80.0150.01219.75
7.2.70.0170.00819.59
7.2.60.0140.01119.67
7.2.50.0130.01119.70
7.2.40.0180.00619.79
7.2.30.0270.01019.65
7.2.20.0200.00519.62
7.2.10.0200.00719.64
7.2.00.0100.00819.76

preferences:
48.23 ms | 401 KiB | 5 Q