3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = "client_id address address_2 city street phone phone_2 mobile mobile_2 email_2 web_address web_address_2 sex_id sex_orientation_id date_of_birth ancestry_id country_id height PRIMARY weight figure_id breast_size_id eye_color_id hair_color_id has_tattoo has_piercings body_hair_id intimate_id is_smoker is_alcoholic canton_id zip_code local_id first_name last_name text nickname"; $a = explode("\n", $s); $b = []; foreach($a as $key=>$temp) { if (strpos($temp, 'id') !== false) { $b[$temp] = [ 'valid' => 'int', 'label' => ucfirst(str_replace('_', ' ', $temp))]; } else { $b[$temp] = [ 'valid' => 'min(1)', 'label' => ucfirst(str_replace('_', ' ', $temp))]; } } echo $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.0170.00316.88
8.3.50.0120.00318.07
8.3.40.0110.00418.98
8.3.30.0090.00618.66
8.3.20.0080.00020.14
8.3.10.0000.00822.21
8.3.00.0040.00423.66
8.2.180.0110.00318.43
8.2.170.0150.00022.96
8.2.160.0070.00720.32
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0070.00019.33
8.2.120.0050.00326.35
8.2.110.0060.00320.35
8.2.100.0080.00417.89
8.2.90.0050.00319.22
8.2.80.0030.00517.97
8.2.70.0040.00417.63
8.2.60.0000.00817.93
8.2.50.0050.00318.10
8.2.40.0040.00420.35
8.2.30.0000.00819.32
8.2.20.0050.00218.14
8.2.10.0000.00818.03
8.2.00.0000.00718.21
8.1.280.0040.01525.92
8.1.270.0060.00323.91
8.1.260.0060.00926.35
8.1.250.0070.00028.09
8.1.240.0100.00722.21
8.1.230.0110.00017.89
8.1.220.0040.00417.76
8.1.210.0080.00018.77
8.1.200.0030.00617.35
8.1.190.0050.00317.23
8.1.180.0070.00018.10
8.1.170.0030.00618.59
8.1.160.0040.00418.83
8.1.150.0000.00820.23
8.1.140.0000.00719.66
8.1.130.0000.00718.88
8.1.120.0040.00417.40
8.1.110.0060.00317.45
8.1.100.0040.00417.50
8.1.90.0050.00217.51
8.1.80.0000.00817.49
8.1.70.0000.00717.38
8.1.60.0000.00717.60
8.1.50.0040.00417.59
8.1.40.0030.00517.55
8.1.30.0080.00017.51
8.1.20.0080.00017.68
8.1.10.0040.00417.48
8.1.00.0040.00417.52
8.0.300.0070.00018.77
8.0.290.0000.00716.75
8.0.280.0000.00718.50
8.0.270.0030.00317.16
8.0.260.0000.00820.30
8.0.250.0030.00317.02
8.0.240.0000.00817.00
8.0.230.0000.00717.07
8.0.220.0000.00716.89
8.0.210.0030.00317.05
8.0.200.0000.00817.01
8.0.190.0090.00017.05
8.0.180.0040.00417.01
8.0.170.0080.00017.02
8.0.160.0040.00417.01
8.0.150.0070.00016.86
8.0.140.0080.00016.89
8.0.130.0000.00613.44
8.0.120.0000.00716.94
8.0.110.0000.00717.10
8.0.100.0050.00316.80
8.0.90.0000.00816.95
8.0.80.0070.00717.00
8.0.70.0030.00516.93
8.0.60.0080.00016.82
8.0.50.0000.00716.86
8.0.30.0110.00717.28
8.0.20.0100.01017.40
8.0.10.0040.00416.98
8.0.00.0090.00916.75
7.4.330.0000.00515.55
7.4.320.0000.00616.51
7.4.300.0060.00016.63
7.4.290.0030.00316.52
7.4.280.0000.00716.58
7.4.270.0030.00516.53
7.4.260.0000.00716.46
7.4.250.0000.00716.40
7.4.240.0030.00516.38
7.4.230.0080.00016.31
7.4.220.0110.00616.45
7.4.210.0030.01216.47
7.4.200.0030.00316.63
7.4.160.0040.01416.48
7.4.150.0000.01817.40
7.4.140.0070.01217.86
7.4.130.0100.01416.71
7.4.120.0090.01116.54
7.4.110.0070.01016.63
7.4.100.0130.01016.65
7.4.90.0150.00916.45
7.4.80.0070.01019.39
7.4.70.0190.00316.70
7.4.60.0150.00316.73
7.4.50.0080.00616.34
7.4.40.0080.00816.65
7.4.30.0100.00616.64
7.4.00.0070.01015.04
7.3.330.0060.00013.18
7.3.320.0060.00013.22
7.3.310.0030.00316.25
7.3.300.0030.00316.23
7.3.290.0040.00916.32
7.3.280.0090.00716.39
7.3.270.0040.01417.40
7.3.260.0150.00516.72
7.3.250.0120.00916.36
7.3.240.0080.00916.40
7.3.230.0060.00916.51
7.3.210.0120.00616.33
7.3.200.0100.00716.50
7.3.190.0090.00616.43
7.3.180.0030.01416.48
7.3.170.0110.00516.43
7.3.160.0100.00716.64
7.2.330.0220.00316.75
7.2.320.0120.00916.38
7.2.310.0060.01016.75
7.2.300.0030.02016.52
7.2.290.0030.01316.75
7.2.60.0130.00416.70
7.1.200.0100.00315.55
7.1.90.0000.01418.12
7.1.80.0000.01318.23
7.1.70.0060.00617.29
7.1.60.0150.00935.25
7.1.50.0090.01634.90
7.1.40.0130.01934.20
7.1.30.0130.01334.51
7.1.20.0200.00734.45
7.1.10.0030.01016.52
7.1.00.0060.00616.75
7.0.230.0030.01017.96
7.0.220.0030.01017.80
7.0.210.0000.01116.56
7.0.200.0040.00716.94
7.0.190.0120.00016.81
7.0.180.0030.01016.21
7.0.170.0060.00616.16
7.0.160.0060.00616.20
7.0.150.0000.01216.19
7.0.140.0000.01316.57
7.0.130.0040.00816.57
7.0.120.0060.00616.41
7.0.110.0090.00316.16
7.0.100.0000.01316.24
7.0.90.0030.01016.27
7.0.80.0070.00616.40
7.0.70.0090.00316.29
7.0.60.0060.00616.09
7.0.50.0000.01716.38
7.0.40.0000.01216.48
7.0.30.0040.00816.56
7.0.20.0070.00416.52
7.0.10.0040.00816.31
7.0.00.0060.00616.63

preferences:
76.85 ms | 401 KiB | 5 Q