3v4l.org

run code in 300+ PHP versions simultaneously
<?php $rows = [ ['id' => 21, 'text' => 't1', 'Mon' => 1], ['id' => 22, 'text' => 't2', 'Mon' => 0], ['id' => 23, 'text' => 't3', 'Mon' => 1], ]; $rowsResult = []; foreach($rows as $row){ if($row['Mon'] == 1){ $rowsResult []= $row; } } var_dump($rowsResult);

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.0090.00916.58
8.3.60.0070.01016.46
8.3.50.0090.00716.60
8.3.40.0070.00718.66
8.3.30.0110.00418.67
8.3.20.0080.00020.09
8.3.10.0040.00421.67
8.3.00.0040.00417.63
8.2.190.0130.00916.75
8.2.180.0060.01225.92
8.2.170.0040.01119.14
8.2.160.0100.00322.96
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0080.00020.95
8.2.120.0050.00326.35
8.2.110.0100.00021.04
8.2.100.0000.01118.22
8.2.90.0060.00319.34
8.2.80.0080.00017.97
8.2.70.0030.00617.63
8.2.60.0050.00517.93
8.2.50.0080.00018.10
8.2.40.0040.00420.55
8.2.30.0070.00021.01
8.2.20.0040.00418.11
8.2.10.0040.00417.94
8.2.00.0040.00418.05
8.1.280.0200.00725.92
8.1.270.0050.00222.14
8.1.260.0040.00426.35
8.1.250.0030.00528.09
8.1.240.0090.00023.96
8.1.230.0060.00617.42
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0030.00617.23
8.1.190.0090.00017.10
8.1.180.0000.00818.10
8.1.170.0030.00618.48
8.1.160.0060.00318.93
8.1.150.0030.00620.68
8.1.140.0000.00719.49
8.1.130.0000.00718.80
8.1.120.0000.00717.49
8.1.110.0070.00017.44
8.1.100.0070.00017.35
8.1.90.0060.00617.38
8.1.80.0000.00717.36
8.1.70.0020.00517.34
8.1.60.0000.00717.57
8.1.50.0040.00417.53
8.1.40.0000.00817.37
8.1.30.0040.00417.52
8.1.20.0080.00017.48
8.1.10.0040.00417.38
8.1.00.0030.00617.34
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0000.00818.39
8.0.270.0090.00316.82
8.0.260.0040.00416.74
8.0.250.0030.00316.96
8.0.240.0040.00416.98
8.0.230.0000.00716.85
8.0.220.0040.00416.84
8.0.210.0070.00016.87
8.0.200.0000.00717.01
8.0.190.0040.00416.96
8.0.180.0040.00416.98
8.0.170.0040.00416.87
8.0.160.0050.00316.96
8.0.150.0040.00416.93
8.0.140.0030.00416.80
8.0.130.0060.00313.26
8.0.120.0040.00416.84
8.0.110.0040.00416.75
8.0.100.0070.00016.89
8.0.90.0000.00716.79
8.0.80.0120.00616.95
8.0.70.0000.00816.87
8.0.60.0040.00416.96
8.0.50.0070.00016.88
8.0.30.0080.00616.99
8.0.20.0120.00917.40
8.0.10.0000.00716.83
8.0.00.0040.01516.63
7.4.330.0050.00015.55
7.4.320.0000.00816.55
7.4.300.0030.00316.61
7.4.290.0000.00716.50
7.4.280.0040.00416.50
7.4.270.0040.00416.53
7.4.260.0030.00313.15
7.4.250.0080.00016.57
7.4.240.0030.00316.59
7.4.230.0040.00416.39
7.4.220.0100.01316.49
7.4.210.0130.00716.45
7.4.200.0040.00416.67
7.4.160.0110.00716.39
7.4.150.0110.00717.40
7.4.140.0110.00917.86
7.4.130.0180.00716.48
7.4.120.0120.00716.54
7.4.110.0100.01316.49
7.4.100.0070.01116.55
7.4.90.0140.00416.45
7.4.80.0140.00919.39
7.4.70.0080.00816.58
7.4.60.0030.01216.41
7.4.50.0040.01516.57
7.4.40.0080.00816.43
7.4.30.0100.00716.49
7.4.00.0120.00315.00
7.3.330.0020.00213.18
7.3.320.0030.00313.26
7.3.310.0000.00716.38
7.3.300.0050.00216.32
7.3.290.0030.00316.28
7.3.280.0130.00616.24
7.3.270.0170.00717.40
7.3.260.0080.00916.40
7.3.250.0110.00716.26
7.3.240.0100.01016.46
7.3.230.0070.01016.25
7.3.210.0060.01016.43
7.3.200.0080.01116.51
7.3.190.0060.01016.64
7.3.180.0120.00416.27
7.3.170.0110.00616.27
7.3.160.0040.01416.48
7.2.330.0100.01316.70
7.2.320.0060.01116.79
7.2.310.0110.00716.69
7.2.300.0120.00316.57
7.2.290.0080.00816.66
7.2.60.0060.00616.75
7.2.00.0040.00919.56
7.1.200.0090.00315.68
7.1.100.0030.01218.25
7.1.70.0090.00316.95
7.1.60.0110.01535.14
7.1.50.0130.01634.66
7.1.40.0110.01834.39
7.1.30.0150.01534.61
7.1.20.0180.00934.63
7.1.10.0030.01216.61
7.1.00.0070.01016.69
7.0.200.0030.01016.63
7.0.190.0090.00616.82
7.0.180.0060.00916.25
7.0.170.0090.00616.31
7.0.160.0110.00816.14
7.0.150.0110.00516.01
7.0.140.0070.00716.20
7.0.130.0090.00916.29
7.0.120.0000.01416.43
7.0.110.0100.01016.18
7.0.100.0120.00916.37
7.0.90.0070.00716.17
7.0.80.0100.00616.50
7.0.70.0070.00716.18
7.0.60.0070.00716.14
7.0.50.0000.01316.26
7.0.40.0000.01316.52
7.0.30.0070.00716.38
7.0.20.0120.00016.31
7.0.10.0000.01216.41
7.0.00.0090.00416.45

preferences:
53.09 ms | 401 KiB | 5 Q