3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface i{} class a implements i{} var_dump(a::class instanceof i); // false var_dump(in_array(i::class, class_implements(a::class), true)); // true

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.0060.01018.52
8.3.50.0090.00916.28
8.3.40.0120.00918.53
8.3.30.0140.00520.87
8.3.20.0130.00724.62
8.3.10.0120.00624.74
8.3.00.0080.01025.11
8.2.180.0090.00925.92
8.2.170.0100.00718.88
8.2.160.0110.00822.96
8.2.150.0140.00824.99
8.2.140.0070.01124.74
8.2.130.0110.00725.11
8.2.120.0110.00923.82
8.2.110.0110.00823.78
8.2.100.0130.00923.00
8.2.90.0120.00923.34
8.2.80.0080.00923.07
8.2.70.0120.01122.95
8.2.60.0100.00823.02
8.2.50.0120.00923.09
8.2.40.0120.00823.10
8.2.30.0100.00823.04
8.2.20.0090.00723.06
8.2.10.0100.00623.37
8.2.00.0100.00523.34
8.1.280.0110.00325.92
8.1.270.0100.00524.11
8.1.260.0080.00625.16
8.1.250.0090.00625.59
8.1.240.0150.00622.39
8.1.230.0090.01123.82
8.1.220.0100.00923.01
8.1.210.0090.01023.26
8.1.200.0070.00822.85
8.1.190.0080.00922.88
8.1.180.0100.00923.10
8.1.170.0090.00823.25
8.1.160.0090.00723.31
8.1.150.0090.00723.28
8.1.140.0090.00823.25
8.1.130.0110.00422.90
8.1.120.0110.00522.92
8.1.110.0100.00522.92
8.1.100.0100.00622.90
8.1.90.0070.00822.92
8.1.80.0060.00922.93
8.1.70.0110.00422.90
8.1.60.0130.00522.94
8.1.50.0120.00522.93
8.1.40.0080.00822.94
8.1.30.0070.01022.94
8.1.20.0120.00522.93
8.1.10.0110.00622.92
8.1.00.0080.00722.90
8.0.300.0070.00623.26
8.0.290.0140.00722.73
8.0.280.0180.00523.16
8.0.270.0090.00523.07
8.0.260.0140.00622.76
8.0.250.0100.00722.79
8.0.240.0160.00822.80
8.0.230.0150.00422.80
8.0.220.0130.00322.79
8.0.210.0180.00622.78
8.0.200.0140.00622.77
8.0.190.0170.00722.79
8.0.180.0100.00522.79
8.0.170.0210.00622.79
8.0.160.0080.00722.78
8.0.150.0190.00322.74
8.0.140.0170.00622.75
8.0.130.0190.00321.88
8.0.120.0170.00722.75
8.0.110.0110.00522.77
8.0.100.0140.00422.75
8.0.90.0160.00722.78
8.0.80.0110.00821.56
8.0.70.0090.00422.75
8.0.60.0190.00122.74
8.0.50.0180.00422.74
8.0.30.0110.00522.76
8.0.20.0060.00922.79
8.0.10.0160.00722.80
8.0.00.0120.00922.80
7.4.330.0120.00421.12
7.4.320.0190.00522.68
7.4.300.0170.00722.70
7.4.290.0210.00422.67
7.4.280.0240.00222.68
7.4.270.0170.00822.68
7.4.260.0180.00721.88
7.4.250.0170.00722.68
7.4.240.0250.00622.70
7.4.230.0250.00422.67
7.4.220.0160.00521.43
7.4.210.0140.00920.64
7.4.200.0180.00522.65
7.4.190.0240.00424.76
7.4.180.0250.00524.76
7.4.160.0190.00822.72
7.4.150.0260.00622.68
7.4.140.0170.01022.67
7.4.130.0170.00722.69
7.4.120.0220.00622.65
7.4.110.0210.00822.61
7.4.100.0210.00822.68
7.4.90.0250.00222.67
7.4.80.0180.00922.65
7.4.70.0210.00722.70
7.4.60.0220.00322.62
7.4.50.0210.00522.60
7.4.40.0180.00822.61
7.4.30.0200.00922.65
7.4.20.0210.00522.64
7.4.10.0170.00822.66
7.4.00.0230.00422.66
7.3.330.0180.00822.63
7.3.320.0170.00721.82
7.3.310.0170.00922.61
7.3.300.0160.00522.63
7.3.290.0190.00620.47
7.3.280.0250.00622.64
7.3.270.0230.00622.61
7.3.260.0220.00722.60
7.3.250.0200.00422.60
7.3.240.0200.00422.64
7.3.230.0220.00522.61
7.3.220.0240.00522.62
7.3.210.0200.00822.61
7.3.200.0240.00522.59
7.3.190.0240.00622.60
7.3.180.0210.00622.59
7.3.170.0210.00522.62
7.3.160.0230.00522.61
7.3.150.0170.00722.61
7.3.140.0230.00222.61
7.3.130.0200.00622.61
7.3.120.0170.00622.60
7.3.110.0170.00722.56
7.3.100.0200.00722.57
7.3.90.0190.00722.66
7.3.80.0150.01022.59
7.3.70.0190.00422.63
7.3.60.0220.00622.63
7.3.50.0210.00722.66
7.3.40.0210.00622.64
7.3.30.0200.00722.65
7.3.20.0240.00722.66
7.3.10.0180.00822.64
7.3.00.0190.00622.64

preferences:
53.37 ms | 401 KiB | 5 Q