3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = array ( 'username' => array ( 'notEmpty' => 'Please fill this field', 'alphaNumeric' => 'Username can only be letters and numbers.', 'between' => 'Username must be from 3 to 15 characters only.' ), 'first_name' => array ( '_empty' => 'This field cannot be left empty' ), 'last_name' => array ( '_empty' => 'This field cannot be left empty' ) ); $output = array_map(function ($a) { return reset($a); }, $data); print_r($output);

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.5.10.0080.00916.51
8.5.00.0100.01219.91
8.4.160.0100.01223.93
8.4.150.0030.00014.05
8.4.140.0140.00917.51
8.4.130.0110.01017.66
8.4.120.0050.00420.60
8.4.110.0090.01020.54
8.4.100.0130.00417.39
8.4.90.0090.00818.84
8.4.80.0050.00417.72
8.4.70.0100.01117.78
8.4.60.0090.01118.80
8.4.50.0110.01018.60
8.4.40.0120.00917.77
8.4.30.0170.00320.38
8.4.20.0070.01417.66
8.4.10.0080.00019.31
8.3.280.0090.01118.25
8.3.270.0130.00716.53
8.3.260.0060.00316.64
8.3.250.0110.00818.67
8.3.240.0100.00916.61
8.3.230.0140.00616.53
8.3.220.0050.00317.15
8.3.210.0110.00721.04
8.3.200.0040.00416.48
8.3.190.0050.00317.05
8.3.180.0100.00916.22
8.3.170.0040.01419.00
8.3.160.0040.00417.06
8.3.150.0180.00017.04
8.3.140.0050.00317.30
8.3.130.0080.00016.79
8.3.120.0200.00020.82
8.3.110.0070.00020.94
8.3.100.0080.00024.06
8.3.90.0080.00026.77
8.3.80.0090.00016.75
8.3.70.0100.01316.75
8.3.60.0070.00716.50
8.3.50.0120.00524.56
8.3.40.0070.01121.90
8.3.30.0070.00718.71
8.3.20.0040.00424.18
8.3.10.0070.00024.66
8.3.00.0040.00426.16
8.2.290.0050.00520.26
8.2.280.0110.00718.34
8.2.270.0150.00318.81
8.2.260.0030.00518.41
8.2.250.0040.00420.29
8.2.240.0070.00317.17
8.2.230.0130.00622.58
8.2.220.0040.00437.54
8.2.210.0070.00726.77
8.2.200.0090.00316.50
8.2.190.0090.00616.58
8.2.180.0070.00725.92
8.2.170.0180.00718.83
8.2.160.0100.00322.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0040.00426.35
8.2.110.0100.00020.41
8.2.100.0130.00317.66
8.2.90.0030.00617.50
8.2.80.0000.00818.77
8.2.70.0090.00017.63
8.2.60.0030.00617.92
8.2.50.0000.00818.07
8.2.40.0050.00319.95
8.2.30.0000.00817.95
8.2.20.0070.00017.93
8.2.10.0040.00419.18
8.2.00.0000.00719.36
8.1.330.0150.00620.54
8.1.320.0110.01016.16
8.1.310.0090.00616.60
8.1.300.0080.00015.83
8.1.290.0040.00418.88
8.1.280.0120.00425.92
8.1.270.0000.00823.99
8.1.260.0070.00028.09
8.1.250.0080.00028.09
8.1.240.0040.00422.14
8.1.230.0080.00322.20
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0050.00517.35
8.1.190.0040.00417.35
8.1.180.0040.00418.10
8.1.170.0040.00418.45
8.1.160.0040.00418.81
8.1.150.0050.00318.93
8.1.140.0000.00718.92
8.1.130.0030.00320.19
8.1.120.0040.00417.39
8.1.110.0040.00417.50
8.1.100.0070.00017.53
8.1.90.0000.00717.49
8.1.80.0030.00317.50
8.1.70.0030.00517.34
8.1.60.0040.00417.53
8.1.50.0040.00417.41
8.1.40.0000.00717.40
8.1.30.0000.00917.74
8.1.20.0030.00617.57
8.1.10.0070.00017.38
8.1.00.0030.00617.49
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0040.00418.43
8.0.270.0070.00017.93
8.0.260.0060.00018.55
8.0.250.0060.00016.90
8.0.240.0000.00716.76
8.0.230.0070.00016.78
8.0.220.0000.00716.84
8.0.210.0000.00716.82
8.0.200.0000.00716.96
8.0.190.0000.00717.01
8.0.180.0030.00516.95
8.0.170.0030.00616.93
8.0.160.0030.00316.98
8.0.150.0040.00416.93
8.0.140.0000.00716.84
8.0.130.0050.00013.28
8.0.120.0000.00716.83
8.0.110.0070.00016.91
8.0.100.0040.00416.86
8.0.90.0040.00416.93
8.0.80.0060.01116.88
8.0.70.0050.00216.88
8.0.60.0040.00416.82
8.0.50.0040.00416.91
8.0.30.0060.00917.08
8.0.20.0120.00916.94
8.0.10.0080.00017.07
8.0.00.0110.00716.72
7.4.330.0000.00515.55
7.4.320.0000.00616.46
7.4.300.0000.00616.45
7.4.290.0040.00416.48
7.4.280.0000.00716.54
7.4.270.0030.00316.41
7.4.260.0000.00513.29
7.4.250.0060.00316.60
7.4.240.0080.00016.51
7.4.230.0070.00016.60
7.4.220.0020.00516.64
7.4.210.0060.01116.56
7.4.200.0050.00216.65
7.4.130.0110.00816.43
7.4.120.0060.01216.50
7.4.110.0110.00716.20
7.4.100.0070.01116.24
7.4.90.0180.00616.20
7.4.80.0090.00916.11
7.4.70.0090.00616.00
7.4.60.0030.01316.41
7.4.50.0080.00816.03
7.4.40.0060.01016.13
7.4.30.0110.00616.18
7.4.20.0110.00616.27
7.4.10.0070.02016.16
7.4.00.0260.03316.52
7.3.330.0040.00416.18
7.3.320.0000.00613.21
7.3.310.0030.00316.22
7.3.300.0000.00716.09
7.3.290.0110.01016.29
7.3.260.0060.01216.32
7.3.240.0050.01316.17
7.3.230.0110.00716.43
7.3.220.0130.01016.23
7.3.210.0130.01016.43
7.3.200.0030.01416.19
7.3.190.0120.00416.12
7.3.180.0070.01016.39
7.3.170.0060.01016.20
7.3.160.0150.00315.98
7.3.150.0090.00916.21
7.3.140.0060.01915.92
7.3.130.0100.01715.69
7.3.120.0270.03116.01
7.3.110.0270.02816.05
7.3.100.0170.01315.72
7.3.90.0070.01016.07
7.3.80.0250.02916.25
7.3.70.0100.01015.96
7.3.60.0100.01016.08
7.3.50.0170.00016.10
7.3.40.0140.00315.96
7.3.30.0140.00316.04
7.3.20.0180.00016.18
7.3.10.0190.02916.17
7.3.00.0140.00416.03
7.2.340.0120.00916.39
7.2.330.0170.00016.33
7.2.320.0040.01216.50
7.2.310.0080.00816.24
7.2.300.0090.00916.51
7.2.290.0070.01016.14
7.2.280.0100.00616.13
7.2.270.0130.02916.11
7.2.260.0250.02516.25
7.2.250.0250.03416.30
7.2.240.0130.00916.24
7.2.230.0200.01416.51
7.2.220.0100.01716.30
7.2.210.0150.00316.40
7.2.200.0060.01516.16
7.2.190.0320.02216.23
7.2.180.0000.01816.20
7.2.170.0140.00316.34
7.2.160.0040.01416.21
7.2.150.0080.01116.46
7.2.140.0060.01216.12
7.2.130.0140.00416.25
7.2.120.0040.01516.34
7.2.110.0320.01016.07
7.2.100.0160.00316.36
7.2.90.0100.00716.46
7.2.80.0120.00616.32
7.2.70.0180.00016.27
7.2.60.0220.00316.28
7.2.50.0120.00616.41
7.2.40.0150.00316.32
7.2.30.0180.00016.39
7.2.20.0090.00916.41
7.2.10.0030.01516.58
7.2.00.0060.01216.16

preferences:
22.82 ms | 403 KiB | 5 Q