3v4l.org

run code in 300+ PHP versions simultaneously
<?php function findNames($variables){ foreach($variables as $variable => $finalVariables){ foreach($finalVariables as $finalVariable){ if($finalVariables['name'] === 'nitin'){ echo $finalVariables['name']; }; } } } $someArrays = [ 0=>['id' => 1, 'name' => 'nitin', 'job' => 'php developer' ], 1=>['id' => 1, 'name' => 'rohit', 'job' => 'DOTNET developer'] ]; var_dump(findNames($someArrays));

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.70.0110.00416.38
8.3.60.0210.00016.75
8.3.50.0120.00717.44
8.3.40.0130.00318.71
8.3.30.0070.00718.76
8.3.20.0090.00020.07
8.3.10.0100.00323.65
8.3.00.0050.00223.66
8.2.190.0040.01116.75
8.2.180.0060.01316.50
8.2.170.0140.00622.96
8.2.160.0070.00720.27
8.2.150.0000.00925.66
8.2.140.0080.00024.66
8.2.130.0050.00322.21
8.2.120.0040.00426.35
8.2.110.0070.00322.20
8.2.100.0060.00617.70
8.2.90.0000.00818.03
8.2.80.0040.00417.97
8.2.70.0040.00417.50
8.2.60.0050.00317.75
8.2.50.0000.00817.61
8.2.40.0030.00717.75
8.2.30.0070.00019.41
8.2.20.0070.00017.95
8.2.10.0000.00718.02
8.2.00.0040.00418.15
8.1.280.0090.00925.92
8.1.270.0050.00323.84
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0070.01122.50
8.1.230.0070.00420.95
8.1.220.0080.00017.74
8.1.210.0040.00418.83
8.1.200.0060.00317.35
8.1.190.0080.00017.23
8.1.180.0060.00318.10
8.1.170.0000.00718.73
8.1.160.0050.00218.89
8.1.150.0000.00718.87
8.1.140.0050.00319.55
8.1.130.0000.00718.92
8.1.120.0080.00017.34
8.1.110.0040.00417.35
8.1.100.0030.00317.40
8.1.90.0000.00817.45
8.1.80.0060.00317.31
8.1.70.0030.00317.50
8.1.60.0060.00317.43
8.1.50.0030.00517.46
8.1.40.0040.00417.51
8.1.30.0000.00817.47
8.1.20.0040.00417.57
8.1.10.0040.00417.54
8.1.00.0040.00417.39
8.0.300.0080.00019.79
8.0.290.0040.00416.75
8.0.280.0030.00618.42
8.0.270.0040.00417.24
8.0.260.0030.00316.77
8.0.250.0000.00716.98
8.0.240.0000.00816.98
8.0.230.0000.00716.95
8.0.220.0050.00216.84
8.0.210.0030.00316.79
8.0.200.0060.00316.92
8.0.190.0000.00716.94
8.0.180.0040.00416.90
8.0.170.0000.00816.86
8.0.160.0060.00616.93
8.0.150.0040.00416.92
8.0.140.0080.00016.87
8.0.130.0030.00313.27
8.0.120.0000.00816.90
8.0.110.0000.00816.88
8.0.100.0070.00016.66
8.0.90.0080.00016.83
8.0.80.0060.00916.91
8.0.70.0000.00716.87
8.0.60.0000.00716.89
8.0.50.0040.00416.82
8.0.30.0100.00817.02
8.0.20.0110.00817.40
8.0.10.0050.00217.00
8.0.00.0030.01416.64
7.4.330.0050.00016.59
7.4.320.0000.00616.61
7.4.300.0040.00416.52
7.4.290.0050.00316.50
7.4.280.0000.00816.48
7.4.270.0000.00716.50
7.4.260.0000.00816.48
7.4.250.0040.00416.57
7.4.240.0040.00416.59
7.4.230.0000.00716.45
7.4.220.0070.01016.66
7.4.210.0110.01016.47
7.4.200.0030.00316.40
7.4.160.0090.00916.49
7.4.150.0110.00717.40
7.4.140.0120.00617.86
7.4.130.0120.00616.57
7.4.120.0110.00816.55
7.4.110.0070.01016.61
7.4.100.0090.00916.55
7.4.90.0090.00916.36
7.4.80.0070.01019.39
7.4.70.0070.01116.61
7.4.60.0000.01516.52
7.4.50.0140.00016.39
7.4.40.0080.00816.48
7.4.30.0100.00616.40
7.4.00.0160.00015.11
7.3.330.0060.00313.44
7.3.320.0030.00313.37
7.3.310.0060.00316.41
7.3.300.0050.00316.29
7.3.290.0030.00316.16
7.3.280.0100.00816.27
7.3.270.0170.00017.40
7.3.260.0090.00816.25
7.3.250.0080.01116.37
7.3.240.0060.01116.42
7.3.230.0100.00716.49
7.3.210.0100.01016.52
7.3.200.0100.00616.54
7.3.190.0100.00616.53
7.3.180.0100.00716.47
7.3.170.0030.01216.64
7.3.160.0100.00716.34
7.2.330.0080.01116.55
7.2.320.0100.00616.79
7.2.310.0040.01316.79
7.2.300.0090.00916.45
7.2.290.0060.01016.50
7.2.60.0080.00016.80
7.1.200.0000.01015.66
7.1.110.0120.00918.30
7.1.100.0070.01318.26
7.1.90.0090.00818.14
7.1.80.0060.00918.09
7.1.70.0030.00917.15
7.1.60.0220.01934.83
7.1.50.0220.01034.79
7.1.40.0160.01634.29
7.1.30.0190.01934.43
7.1.20.0240.01434.54
7.1.10.0060.01216.55
7.1.00.0060.00916.57
7.0.250.0080.01117.71
7.0.240.0000.02117.82
7.0.230.0030.01217.83
7.0.220.0080.00817.76
7.0.210.0090.00316.56
7.0.200.0040.00916.75
7.0.190.0090.00416.67
7.0.180.0080.00816.07
7.0.170.0110.00616.21
7.0.160.0070.01116.05
7.0.150.0040.01416.14
7.0.140.0030.01016.37
7.0.130.0030.01016.48
7.0.120.0030.01016.54
7.0.110.0080.00816.19
7.0.100.0040.01216.35
7.0.90.0070.00716.27
7.0.80.0120.00616.32
7.0.70.0060.01316.14
7.0.60.0060.01215.96
7.0.50.0070.00716.29
7.0.40.0050.00816.21
7.0.30.0070.00716.45
7.0.20.0060.00916.48
7.0.10.0080.00716.41
7.0.00.0060.00916.28

preferences:
49.56 ms | 401 KiB | 5 Q