3v4l.org

run code in 300+ PHP versions simultaneously
<?php $form_validation_rules = array( array('field' => 'email', 'label' => 'E-Mail-Adresse', 'rules' => 'trim|is_unique[bdb_users.email]|valid_email|required|xss_clean'), array('field' => 'first_name', 'label' => 'Vorname', 'rules' => 'trim|required|xss_clean'), array('field' => 'last_name', 'label' => 'Nachname', 'rules' => 'trim|required|xss_clean'), array('field' => 'tel', 'label' => 'Telefon', 'rules' => 'trim|required|xss_clean'), array('field' => 'address', 'label' => 'Adresse', 'rules' => 'trim|required|xss_clean'), array('field' => 'company', 'label' => 'Unternehmen', 'rules' => 'trim|required|xss_clean'), array('field' => 'password', 'label' => 'Passwort', 'rules' => 'trim|required|xss_clean'), array('field' => 'position', 'label' => 'Position', 'rules' => 'trim|xss_clean'), array('field' => 'department', 'label' => 'Abteilung', 'rules' => 'trim|xss_clean'), array('field' => 'credits', 'label' => 'Credits', 'rules' => 'trim|required|xss_clean|integer'), ); $x = array_map(function($element){return $element['field'];}, $form_validation_rules); var_dump($x);

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.0040.01118.31
8.3.50.0130.00318.18
8.3.40.0180.00418.71
8.3.30.0070.01118.89
8.3.20.0070.00020.16
8.3.10.0040.00421.83
8.3.00.0080.00019.80
8.2.180.0130.00616.63
8.2.170.0070.00722.96
8.2.160.0070.00720.07
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0040.01126.16
8.2.120.0030.00521.09
8.2.110.0040.00422.25
8.2.100.0040.00819.82
8.2.90.0050.00319.25
8.2.80.0000.00917.97
8.2.70.0080.00017.63
8.2.60.0040.00417.93
8.2.50.0090.00018.07
8.2.40.0110.00018.01
8.2.30.0000.00818.14
8.2.20.0060.00317.78
8.2.10.0030.00618.14
8.2.00.0000.00717.66
8.1.280.0140.00325.92
8.1.270.0030.00522.02
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0070.00322.02
8.1.230.0060.00619.09
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0000.01217.35
8.1.190.0080.00017.00
8.1.180.0030.00618.10
8.1.170.0050.00318.53
8.1.160.0040.00422.07
8.1.150.0000.00718.94
8.1.140.0090.00017.34
8.1.130.0050.00317.75
8.1.120.0050.00217.37
8.1.110.0070.00017.41
8.1.100.0090.00017.32
8.1.90.0060.00317.43
8.1.80.0030.00517.48
8.1.70.0000.00817.49
8.1.60.0040.00817.60
8.1.50.0080.00017.54
8.1.40.0000.00817.53
8.1.30.0000.00817.56
8.1.20.0040.00417.73
8.1.10.0040.00417.51
8.1.00.0070.00017.48
8.0.300.0000.00718.77
8.0.290.0040.00416.63
8.0.280.0070.00018.40
8.0.270.0040.00417.17
8.0.260.0060.00018.27
8.0.250.0000.00816.80
8.0.240.0000.00716.89
8.0.230.0040.00416.93
8.0.220.0000.00716.89
8.0.210.0080.00016.84
8.0.200.0000.00616.96
8.0.190.0030.00516.98
8.0.180.0040.00416.95
8.0.170.0000.00816.89
8.0.160.0070.00016.78
8.0.150.0000.00716.88
8.0.140.0040.00416.90
8.0.130.0030.00313.37
8.0.120.0030.00516.86
8.0.110.0000.00716.92
8.0.100.0000.00716.93
8.0.90.0070.00016.78
8.0.80.0130.00916.97
8.0.70.0000.00716.72
8.0.60.0070.00016.98
8.0.50.0020.00516.72
8.0.30.0140.00817.05
8.0.20.0100.00817.40
8.0.10.0040.00416.84
8.0.00.0110.00616.67
7.4.330.0050.00015.14
7.4.320.0000.00716.63
7.4.300.0000.00716.59
7.4.290.0000.00716.50
7.4.280.0040.00416.45
7.4.270.0000.00716.61
7.4.260.0030.00316.65
7.4.250.0080.00016.40
7.4.240.0030.00316.55
7.4.230.0030.00316.52
7.4.220.0000.01816.66
7.4.210.0060.00916.60
7.4.200.0000.00816.52
7.4.160.0040.01216.43
7.4.150.0110.00717.40
7.4.140.0070.01017.86
7.4.130.0070.00916.39
7.4.120.0110.00716.44
7.4.110.0070.01016.48
7.4.100.0030.02116.58
7.4.90.0080.00816.47
7.4.80.0060.01319.39
7.4.70.0150.00816.35
7.4.60.0070.01016.36
7.4.50.0040.00416.31
7.4.40.0140.00316.48
7.4.30.0030.01316.48
7.4.00.0100.00715.07
7.3.330.0000.00513.33
7.3.320.0050.00013.27
7.3.310.0040.00216.29
7.3.300.0020.00516.35
7.3.290.0060.01016.21
7.3.280.0100.00716.17
7.3.270.0060.01217.40
7.3.260.0090.01016.33
7.3.250.0160.00816.43
7.3.240.0110.00716.20
7.3.230.0100.01316.45
7.3.210.0080.00816.40
7.3.200.0060.01419.39
7.3.190.0060.01316.33
7.3.180.0110.01116.58
7.3.170.0100.00716.42
7.3.160.0090.00916.27
7.3.120.0090.00614.68
7.2.330.0070.01116.70
7.2.320.0140.01016.46
7.2.310.0120.01216.70
7.2.300.0060.00916.68
7.2.290.0140.00316.40
7.1.70.0040.00416.62
7.1.60.0130.01019.11
7.1.50.0100.01316.86
7.1.00.0070.07322.37
7.0.200.0030.01016.77
7.0.140.0000.07722.09
7.0.60.0100.08320.02
7.0.50.0000.08317.88
7.0.40.0070.07320.11
7.0.30.0270.07720.09
7.0.20.0330.04720.07
7.0.10.0100.05020.10
7.0.00.0130.08020.24
5.6.280.0070.07020.87
5.6.210.0130.07020.65
5.6.200.0130.08018.16
5.6.190.0100.04020.33
5.6.180.3570.04020.63
5.6.170.0170.08320.47
5.6.160.0070.05720.44
5.6.150.0070.07318.18
5.6.140.0030.05318.18
5.6.130.0070.08018.28
5.6.120.0100.08721.10
5.6.110.0130.08021.02
5.6.100.0170.07321.09
5.6.90.0170.08020.88
5.6.80.0030.04320.38
5.5.350.0030.08020.41
5.5.340.0100.06018.07
5.5.330.0100.07720.27
5.5.320.0370.04320.25
5.5.310.0370.06720.27
5.5.300.0070.08018.03
5.5.290.0170.04317.92
5.5.280.0100.08320.81
5.5.270.0070.08320.87
5.5.260.0230.07320.77
5.5.250.0130.08320.55
5.5.240.0270.07320.19
5.4.450.0270.05019.32
5.4.440.0530.04719.49
5.4.430.0300.04319.30
5.4.420.0500.04019.16
5.4.410.0830.04719.26
5.4.400.0430.04019.07
5.4.390.0370.03719.22
5.4.380.0370.05718.59
5.4.370.0300.05718.54
5.4.360.0370.05318.62
5.4.350.0230.06018.75
5.4.340.0500.05018.58
5.4.320.0070.03812.52
5.4.310.0040.03912.51
5.4.300.0080.03412.52
5.4.290.0060.04012.50
5.4.280.0100.03112.40
5.4.270.0090.04512.40
5.4.260.0080.03612.40
5.4.250.0070.04812.40
5.4.240.0090.03712.40
5.4.230.0040.04012.39
5.4.220.0110.03912.39
5.4.210.0040.03712.40
5.4.200.0030.04012.39
5.4.190.0040.03812.39
5.4.180.0080.05012.39
5.4.170.0050.04412.40
5.4.160.0070.03612.40
5.4.150.0070.03412.39
5.4.140.0080.03512.08
5.4.130.0050.03712.07
5.4.120.0070.04112.02
5.4.110.0050.04212.02
5.4.100.0060.03912.02
5.4.90.0030.04012.02
5.4.80.0050.03812.02
5.4.70.0080.03912.02
5.4.60.0080.03612.01
5.4.50.0070.03412.02
5.4.40.0060.04312.00
5.4.30.0060.03512.00
5.4.20.0050.03612.00
5.4.10.0060.03712.00
5.4.00.0080.03811.49
5.3.290.0070.03912.80
5.3.280.0090.03412.71
5.3.270.0070.04312.72
5.3.260.0060.04812.72
5.3.250.0060.03612.72
5.3.240.0040.03812.72
5.3.230.0080.04812.71
5.3.220.0040.03812.68
5.3.210.0060.03912.68
5.3.200.0070.04512.68
5.3.190.0050.04512.67
5.3.180.0080.03512.67
5.3.170.0080.03712.67
5.3.160.0050.04012.67
5.3.150.0080.03412.67
5.3.140.0060.03612.66
5.3.130.0070.03812.66
5.3.120.0070.04412.66
5.3.110.0070.04112.66
5.3.100.0090.03212.13
5.3.90.0100.03212.10
5.3.80.0060.03612.09
5.3.70.0060.03712.10
5.3.60.0060.03812.08
5.3.50.0050.03712.03
5.3.40.0080.03412.03
5.3.30.0080.03411.98
5.3.20.0090.04111.77
5.3.10.0080.03211.73
5.3.00.0040.03811.71
5.2.170.0040.0319.20
5.2.160.0040.0309.19
5.2.150.0040.0319.19
5.2.140.0040.0319.19
5.2.130.0060.0279.14
5.2.120.0040.0309.14
5.2.110.0060.0319.15
5.2.100.0030.0309.14
5.2.90.0060.0279.15
5.2.80.0040.0309.14
5.2.70.0060.0369.14
5.2.60.0070.0359.10
5.2.50.0060.0319.07
5.2.40.0060.0349.04
5.2.30.0020.0369.02
5.2.20.0030.0309.01
5.2.10.0040.0298.93
5.2.00.0030.0308.79
5.1.60.0030.0258.08
5.1.50.0050.0248.08
5.1.40.0070.0228.06
5.1.30.0020.0288.41
5.1.20.0030.0288.42
5.1.10.0020.0288.15
5.1.00.0030.0268.15
5.0.50.0010.0226.63
5.0.40.0030.0196.49
5.0.30.0050.0336.30
5.0.20.0020.0286.26
5.0.10.0030.0206.25
5.0.00.0030.0306.24
4.4.90.0020.0174.78
4.4.80.0040.0144.75
4.4.70.0050.0154.76
4.4.60.0050.0164.75
4.4.50.0060.0194.77
4.4.40.0050.0244.71
4.4.30.0020.0164.76
4.4.20.0020.0164.84
4.4.10.0030.0154.85
4.4.00.0040.0244.76
4.3.110.0030.0154.67
4.3.100.0020.0214.67
4.3.90.0030.0184.63
4.3.80.0010.0244.58
4.3.70.0000.0174.63
4.3.60.0080.0214.63
4.3.50.0020.0164.63
4.3.40.0030.0294.54
4.3.30.0010.0203.29
4.3.20.0000.0173.27
4.3.10.0020.0153.23
4.3.00.0070.01315.29

preferences:
55.19 ms | 400 KiB | 5 Q