3v4l.org

run code in 300+ PHP versions simultaneously
<?php function configureOptions(OptionsResolver $resolver) { $resolver->setDefaults(array( 'validation_groups' => function (FormInterface $form) { $data = $form->getData(); if (Client::TYPE_PERSON == $data->getType()) { return array('Default', 'person'); } return array('Default', 'company'); }, )); }

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.01218.30
8.3.50.0110.00418.15
8.3.40.0090.00618.64
8.3.30.0110.00318.42
8.3.20.0000.00720.16
8.3.10.0080.00020.61
8.3.00.0080.00020.20
8.2.180.0190.00318.05
8.2.170.0110.00822.96
8.2.160.0100.01020.27
8.2.150.0000.00824.18
8.2.140.0000.00824.66
8.2.130.0050.00326.16
8.2.120.0030.00519.77
8.2.110.0130.00719.27
8.2.100.0040.00817.72
8.2.90.0030.00518.95
8.2.80.0000.00917.97
8.2.70.0080.00017.50
8.2.60.0000.00817.80
8.2.50.0040.00418.10
8.2.40.0030.00620.65
8.2.30.0040.00419.17
8.2.20.0040.00417.97
8.2.10.0080.00017.85
8.2.00.0040.00417.79
8.1.280.0130.00325.92
8.1.270.0040.00423.87
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0090.00021.12
8.1.230.0040.00719.22
8.1.220.0050.00317.74
8.1.210.0080.00018.77
8.1.200.0030.00616.88
8.1.190.0000.00816.98
8.1.180.0000.00718.10
8.1.170.0000.00918.45
8.1.160.0000.00718.75
8.1.150.0040.00420.31
8.1.140.0000.00719.44
8.1.130.0030.00618.75
8.1.120.0000.00717.37
8.1.110.0000.00717.19
8.1.100.0000.00917.30
8.1.90.0040.00417.25
8.1.80.0070.00017.38
8.1.70.0040.00417.22
8.1.60.0090.00017.49
8.1.50.0030.00617.41
8.1.40.0050.00317.29
8.1.30.0000.00817.48
8.1.20.0030.00617.43
8.1.10.0040.00417.28
8.1.00.0000.00717.27
8.0.300.0030.00618.77
8.0.290.0060.00316.63
8.0.280.0070.00018.23
8.0.270.0030.00317.08
8.0.260.0080.00018.71
8.0.250.0030.00316.84
8.0.240.0000.00816.80
8.0.230.0000.00716.71
8.0.220.0000.00716.80
8.0.210.0050.00216.61
8.0.200.0030.00316.84
8.0.190.0000.00716.83
8.0.180.0000.00716.67
8.0.170.0000.00816.73
8.0.160.0030.00316.86
8.0.150.0070.00016.59
8.0.140.0070.00016.69
8.0.130.0000.00513.18
8.0.120.0040.00416.76
8.0.110.0060.00316.68
8.0.100.0020.00516.71
8.0.90.0040.00416.87
8.0.80.0060.00916.71
8.0.70.0040.00416.82
8.0.60.0000.00816.73
8.0.50.0030.00516.80
8.0.30.0130.00516.92
8.0.20.0090.00917.40
8.0.10.0040.00416.73
8.0.00.0030.01416.69
7.4.330.0000.00615.55
7.4.320.0030.00316.51
7.4.300.0060.00016.47
7.4.290.0030.00316.26
7.4.280.0000.00816.50
7.4.270.0030.00316.48
7.4.260.0070.00016.44
7.4.250.0000.00716.41
7.4.240.0000.00716.38
7.4.230.0070.00016.12
7.4.220.0120.01216.45
7.4.210.0030.01316.36
7.4.200.0030.00616.29
7.4.160.0120.00816.31
7.4.150.0030.01417.40
7.4.140.0080.01017.86
7.4.130.0120.00616.31
7.4.120.0110.00916.29
7.4.110.0060.01016.52
7.4.100.0110.01116.29
7.4.90.0080.00816.38
7.4.80.0140.00719.39
7.4.70.0070.01116.13
7.4.60.0140.00716.41
7.4.50.0090.00916.42
7.4.40.0150.00616.30
7.4.30.0030.01316.48
7.4.00.0070.00714.80
7.3.330.0050.00013.01
7.3.320.0000.00513.09
7.3.310.0000.00716.18
7.3.300.0030.00316.18
7.3.290.0150.00316.20
7.3.280.0090.00616.15
7.3.270.0080.01217.40
7.3.260.0110.00616.15
7.3.250.0100.00716.29
7.3.240.0110.00716.16
7.3.230.0060.01816.43
7.3.210.0130.00316.44
7.3.200.0150.00316.36
7.3.190.0030.01216.25
7.3.180.0060.01016.26
7.3.170.0090.00616.31
7.3.160.0130.00316.41
7.3.10.0080.00816.56
7.3.00.0050.00816.35
7.2.330.0140.00716.51
7.2.320.0120.01216.30
7.2.310.0030.01416.16
7.2.300.0080.01616.51
7.2.290.0060.01016.10
7.2.130.0080.00816.61
7.2.120.0080.00616.67
7.2.110.0050.00916.70
7.2.100.0070.00716.61
7.2.90.0110.00416.70
7.2.80.0070.01016.68
7.2.70.0070.00516.58
7.2.60.0050.00816.72
7.2.50.0030.01016.83
7.2.40.0090.00616.83
7.2.30.0130.00216.72
7.2.20.0070.00816.66
7.2.10.0030.01016.51
7.2.00.0050.00916.59
7.1.250.0020.01415.63
7.1.200.0050.00515.36
7.1.80.0080.00517.57
7.1.70.0080.00417.03
7.1.60.0040.02334.74
7.1.50.0180.00734.63
7.1.40.0260.00034.41
7.1.30.0120.01534.37
7.1.20.0170.01334.68
7.1.10.0050.01616.63
7.1.00.0000.01416.43
7.0.200.0060.00616.51
7.0.190.0040.01116.27
7.0.180.0090.00415.92
7.0.170.0130.00315.99
7.0.160.0030.01315.94
7.0.150.0060.01216.21
7.0.140.0160.00016.04
7.0.130.0030.01416.22
7.0.120.0070.00716.33
7.0.110.0060.00616.32
7.0.100.0000.01316.18
7.0.90.0040.01116.19
7.0.80.0030.01016.15
7.0.70.0060.00616.20
7.0.60.0000.01315.99
7.0.50.0000.01316.29
7.0.40.0060.00816.29
7.0.30.0060.00616.59
7.0.20.0060.00616.44
7.0.10.0000.01216.30
7.0.00.0000.01216.24

preferences:
32.17 ms | 400 KiB | 5 Q