3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface FormStateInterface {} class FormState implements FormStateInterface {} class ConfigFormBase { public function submitForm(array &$form, FormStateInterface $form_state) { print "original"; } } trait ValidatableConfigFormTrait { public function submitForm(array &$form, FormStateInterface $form_state) { print "trait"; } } class MyForm extends ConfigFormBase { use ValidatableConfigFormTrait; } $form = []; (new MyForm())->submitForm($form, new FormState());

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.4.20.0090.00622.52
8.4.10.0090.00023.76
8.3.150.0100.01018.98
8.3.140.0000.00818.94
8.3.130.0070.00318.50
8.3.120.0130.00319.04
8.3.110.0050.00320.94
8.3.100.0000.00816.62
8.3.90.0080.00018.16
8.3.80.0100.00018.40
8.3.70.0110.01116.25
8.3.60.0000.01518.31
8.3.50.0150.00318.61
8.3.40.0090.00621.89
8.3.30.0030.01020.25
8.3.20.0050.00224.18
8.3.10.0080.00024.66
8.3.00.0080.00026.16
8.2.260.0140.00420.48
8.2.250.0100.00716.49
8.2.240.0040.01417.02
8.2.230.0070.00022.58
8.2.220.0060.00324.06
8.2.210.0000.00826.77
8.2.200.0030.00616.75
8.2.190.0120.00316.63
8.2.180.0070.01118.06
8.2.170.0110.00318.68
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00721.00
8.2.110.0050.00522.15
8.2.100.0030.00917.64
8.2.90.0100.00418.78
8.2.80.0120.00618.77
8.2.70.0110.00718.77
8.2.60.0150.00418.77
8.2.50.0130.00518.77
8.2.40.0130.00418.77
8.2.30.0080.00518.77
8.2.20.0090.00818.77
8.2.10.0110.00618.77
8.2.00.0160.00418.77
8.1.310.0030.00516.54
8.1.300.0060.00318.21
8.1.290.0070.00718.88
8.1.280.0060.01625.92
8.1.270.0030.00623.85
8.1.260.0050.00226.35
8.1.250.0000.00728.09
8.1.240.0090.00022.08
8.1.230.0110.00021.03
8.1.220.0090.00518.77
8.1.210.0120.00618.77
8.1.200.0170.00218.77
8.1.190.0050.00918.77
8.1.180.0130.00518.77
8.1.170.0140.00418.77
8.1.160.0130.00418.77
8.1.150.0170.00118.77
8.1.140.0120.00518.77
8.1.130.0130.00418.77
8.1.120.0120.00618.77
8.1.110.0090.00718.77
8.1.100.0090.00918.77
8.1.90.0100.00718.77
8.1.80.0090.00718.77
8.1.70.0100.00818.77
8.1.60.0140.00618.77
8.1.50.0120.00518.77
8.1.40.0120.00618.77
8.1.30.0170.00118.77
8.1.20.0110.00818.77
8.1.10.0160.00318.77
8.1.00.0110.00718.77
8.0.300.0110.00219.72
8.0.290.0140.00318.77
8.0.280.0120.00518.77
8.0.270.0130.00418.77
8.0.260.0140.00418.77
8.0.250.0110.00618.77
8.0.240.0110.00618.77
8.0.230.0140.00518.77
8.0.220.0110.00618.77
8.0.210.0160.00318.77
8.0.200.0150.00518.77
8.0.190.0110.00618.77
8.0.180.0120.00618.77
8.0.170.0160.00018.77
8.0.160.0150.00218.77
8.0.150.0160.00118.77
8.0.140.0050.00918.77
8.0.130.0150.00418.77
8.0.120.0090.00818.77
8.0.110.0110.00618.77
8.0.100.0140.00318.77
8.0.90.0140.00218.77
8.0.80.0080.01018.77
8.0.70.0110.00718.77
8.0.60.0090.00818.77
8.0.50.0090.00718.77
8.0.30.0090.00918.77
8.0.20.0160.00118.77
8.0.10.0140.00318.77

preferences:
44.41 ms | 403 KiB | 5 Q